mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 15:14:31 -04:00
wonky exception
This commit is contained in:
parent
5122fa0738
commit
648223fc6c
1 changed files with 1 additions and 1 deletions
2
fetch.py
2
fetch.py
|
@ -132,7 +132,7 @@ def archive_dot_org(out_dir, link, overwrite=False, timeout=TIMEOUT):
|
||||||
success = True
|
success = True
|
||||||
|
|
||||||
elif len(errors) == 1 and b'RobotAccessControlException' in errors[0]:
|
elif len(errors) == 1 and b'RobotAccessControlException' in errors[0]:
|
||||||
raise ValueError('Archive.org denied by {}/robots.txt'.format(link['domain']))
|
raise Exception('Archive.org denied by {}/robots.txt'.format(link['domain']))
|
||||||
elif errors:
|
elif errors:
|
||||||
raise Exception(', '.join(e.decode() for e in errors))
|
raise Exception(', '.join(e.decode() for e in errors))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue