diff options
-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 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 |