aboutsummaryrefslogtreecommitdiffstats
path: root/check_issn_urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'check_issn_urls.py')
-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 b00609f..cea7c81 100755
--- a/check_issn_urls.py
+++ b/check_issn_urls.py
@@ -120,6 +120,7 @@ def check_gwb(url, match_type="exact"):
else:
return None
+
HOST_SKIP_LIST = [
"www.jstor.org",
"www.tandfonline.com",
@@ -133,6 +134,7 @@ HOST_SKIP_LIST = [
"catalog.hathitrust.org",
]
+
def check_url(issnl, url):
# print("Fetching: %s" % url)
info = dict(issnl=issnl, url=url)
@@ -140,7 +142,7 @@ def check_url(issnl, url):
info["error"] = "bad-url"
info["terminal_status_code"] = -1
return info
- if not url.startswith('http'):
+ if not url.startswith("http"):
info["error"] = "url-not-http"
info["terminal_status_code"] = -1
return info