From d30490e66026d6d4492b0407d1ce41fb7c5b8e2a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 11 Jun 2020 18:08:28 -0700 Subject: check_issn_urls.py: yet another corner-case --- check_issn_urls.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/check_issn_urls.py b/check_issn_urls.py index c2a86ab..1135d6c 100755 --- a/check_issn_urls.py +++ b/check_issn_urls.py @@ -140,6 +140,10 @@ def check_url(issnl, url): info['error'] = 'InvalidSchema' info['terminal_status_code'] = info['status_code'] = -1 return info + except UnicodeDecodeError: + info['error'] = 'UnicodeDecodeError' + info['terminal_status_code'] = info['status_code'] = -1 + return info if resp.history: info['status_code'] = resp.history[0].status_code -- cgit v1.2.3