From 455f7fd0cb8a8090ed9ec6188d99422615b061cf Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 30 Nov 2021 14:02:55 -0800 Subject: check_issn_urls: remove ProtocolError (doesn't exist?) --- check_issn_urls.py | 6 +----- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3