diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-11-30 14:02:55 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-11-30 14:02:55 -0800 |
commit | 455f7fd0cb8a8090ed9ec6188d99422615b061cf (patch) | |
tree | 3fe98d677ffc8522b45cf73d8b3b9dfc9fb65b1c | |
parent | dcfeaecd89ef8509a78a69443ad71cfe23b972c9 (diff) | |
download | chocula-455f7fd0cb8a8090ed9ec6188d99422615b061cf.tar.gz chocula-455f7fd0cb8a8090ed9ec6188d99422615b061cf.zip |
check_issn_urls: remove ProtocolError (doesn't exist?)
-rwxr-xr-x | check_issn_urls.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/check_issn_urls.py b/check_issn_urls.py index bb54259..6fbb05d 100755 --- a/check_issn_urls.py +++ b/check_issn_urls.py @@ -101,7 +101,7 @@ def check_gwb(url, match_type="exact"): "filter": "statuscode:200", }, ) - except Exception as e: + except Exception: # nasty blanket catch return None if resp.status_code not in [200, 404]: @@ -172,10 +172,6 @@ def check_url(issnl, url): info["error"] = "ConnectionResetError" info["terminal_status_code"] = info["status_code"] = -1 return info - except requests.exceptions.ProtocolError: - info["error"] = "ProtocolError" - info["terminal_status_code"] = info["status_code"] = -1 - return info except requests.exceptions.InvalidURL: info["error"] = "ProtocolError" info["terminal_status_code"] = info["status_code"] = -1 |