From 648223fc6c481cbf282f173c62db217aef1bdb53 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 5 Jul 2017 17:30:00 -0500 Subject: [PATCH] wonky exception --- fetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch.py b/fetch.py index 070ce7c4..9775617d 100644 --- a/fetch.py +++ b/fetch.py @@ -132,7 +132,7 @@ def archive_dot_org(out_dir, link, overwrite=False, timeout=TIMEOUT): success = True 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: raise Exception(', '.join(e.decode() for e in errors)) else: