aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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