diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-11-30 14:22:15 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-11-30 14:22:15 -0800 |
commit | 2cf76354dabacdb54e4101cc5df13c6b9ccade70 (patch) | |
tree | d4dbb60ce4baf46edb06efe5edd7413f3fee27e9 /check_issn_urls.py | |
parent | 55539e94edc9a49fca1dafdd9468966abd33fe10 (diff) | |
download | chocula-2cf76354dabacdb54e4101cc5df13c6b9ccade70.tar.gz chocula-2cf76354dabacdb54e4101cc5df13c6b9ccade70.zip |
make fmt
Diffstat (limited to 'check_issn_urls.py')
-rwxr-xr-x | check_issn_urls.py | 4 |
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 |