diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-11-23 18:16:51 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-11-23 18:16:51 -0800 |
commit | 2d3a161c76f6f0acdad846f6070a3c282b8d9e38 (patch) | |
tree | 19da907f4c2d86e28e9c7c71d91c460657cdc4e3 | |
parent | 8db69b30da12321ba4044254d2df61e33d2aea46 (diff) | |
download | chocula-2d3a161c76f6f0acdad846f6070a3c282b8d9e38.tar.gz chocula-2d3a161c76f6f0acdad846f6070a3c282b8d9e38.zip |
yet another possible connection error
-rwxr-xr-x | check_issn_urls.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |