From 2d3a161c76f6f0acdad846f6070a3c282b8d9e38 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 23 Nov 2021 18:16:51 -0800 Subject: yet another possible connection error --- check_issn_urls.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/check_issn_urls.py b/check_issn_urls.py index 71593f5..4391324 100755 --- a/check_issn_urls.py +++ b/check_issn_urls.py @@ -156,6 +156,10 @@ def check_url(issnl, url): info["error"] = "InvalidSchema" info["terminal_status_code"] = info["status_code"] = -1 return info + except requests.exceptions.RemoteDisconnected: + info["error"] = "RemoteDisconnected" + info["terminal_status_code"] = info["status_code"] = -1 + return info except UnicodeDecodeError: info["error"] = "UnicodeDecodeError" info["terminal_status_code"] = info["status_code"] = -1 -- cgit v1.2.3