aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcheck_issn_urls.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/check_issn_urls.py b/check_issn_urls.py
index ff73353..c2a86ab 100755
--- a/check_issn_urls.py
+++ b/check_issn_urls.py
@@ -95,7 +95,9 @@ def check_gwb(url, match_type='exact'):
time.sleep(5)
if not resp.status_code == 200:
sys.stderr.write("CDX ERR {}: {}\n".format(resp.status_code, url))
- return 'error'
+ # TODO: this isn't really correct, but not sure what to return/record
+ # if we failed through all timeouts
+ return None
line = resp.text.strip().split('\n')[0]
if line:
dt = line.split()[1]