mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-12 08:33:10 +00:00
Catch overflowerror in robots.txt crawl-delay
This commit is contained in:
parent
0e4d6f6e1a
commit
00f8011709
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ class RobotFileParser (object):
|
|||
try:
|
||||
entry.crawldelay = max(0, int(line[1]))
|
||||
state = 2
|
||||
except ValueError:
|
||||
except (ValueError, OverflowError):
|
||||
log.debug(LOG_CHECK, "%r line %d: invalid delay number %r", self.url, linenumber, line[1])
|
||||
pass
|
||||
elif line[0] == "sitemap":
|
||||
|
|
|
|||
Loading…
Reference in a new issue