diff options
-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 |