aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-11-23 18:16:51 -0800
committerBryan Newbold <bnewbold@archive.org>2021-11-23 18:16:51 -0800
commit2d3a161c76f6f0acdad846f6070a3c282b8d9e38 (patch)
tree19da907f4c2d86e28e9c7c71d91c460657cdc4e3
parent8db69b30da12321ba4044254d2df61e33d2aea46 (diff)
downloadchocula-2d3a161c76f6f0acdad846f6070a3c282b8d9e38.tar.gz
chocula-2d3a161c76f6f0acdad846f6070a3c282b8d9e38.zip
yet another possible connection error
-rwxr-xr-xcheck_issn_urls.py4
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