euscan: don't fail if robots.txt can't be read
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
parent
bcda1a7ce3
commit
634e06b779
@ -416,7 +416,7 @@ def urlallowed(url):
|
|||||||
|
|
||||||
setdefaulttimeout(timeout)
|
setdefaulttimeout(timeout)
|
||||||
|
|
||||||
return rp.can_fetch(CONFIG['user-agent'], url) if rp else False
|
return rp.can_fetch(CONFIG['user-agent'], url) if rp else True
|
||||||
|
|
||||||
|
|
||||||
def urlopen(url, timeout=None, verb="GET"):
|
def urlopen(url, timeout=None, verb="GET"):
|
||||||
|
Loading…
Reference in New Issue
Block a user