mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-20 06:10:59 +00:00
Consolidate the stop messages.
This commit is contained in:
parent
d7186bc904
commit
dacc7e7ae4
1 changed files with 4 additions and 4 deletions
|
|
@ -94,9 +94,9 @@ class TitleFinder (object):
|
|||
data = self.parser.peek(MAX_TITLELEN)
|
||||
data = data.decode(self.parser.encoding, "ignore")
|
||||
self.title = linkname.title_name(data)
|
||||
raise StopParse("Title found")
|
||||
raise StopParse("found <title> tag")
|
||||
elif tag == 'body':
|
||||
raise StopParse("Found body tag")
|
||||
raise StopParse("found <body> tag")
|
||||
|
||||
|
||||
class TagFinder (object):
|
||||
|
|
@ -135,9 +135,9 @@ class MetaRobotsFinder (TagFinder):
|
|||
val = attrs.get_true('content', u'').lower().split(u',')
|
||||
self.follow = u'nofollow' not in val
|
||||
self.index = u'noindex' not in val
|
||||
raise StopParse("Found meta robots tag")
|
||||
raise StopParse("found <meta name=robots> tag")
|
||||
elif tag == 'body':
|
||||
raise StopParse("Found body tag")
|
||||
raise StopParse("found <body> tag")
|
||||
|
||||
|
||||
def is_meta_url (attr, attrs):
|
||||
|
|
|
|||
Loading…
Reference in a new issue