diff options
| author | Bryan Newbold <bnewbold@archive.org> | 2020-06-11 18:08:28 -0700 | 
|---|---|---|
| committer | Bryan Newbold <bnewbold@archive.org> | 2020-06-11 18:08:28 -0700 | 
| commit | d30490e66026d6d4492b0407d1ce41fb7c5b8e2a (patch) | |
| tree | 0d15ab03f99d1b3f29442b17ac7f2dcfefc06d58 /check_issn_urls.py | |
| parent | 97a28d08193a4b681d3540fa8d9a496c3dc2c6b8 (diff) | |
| download | chocula-d30490e66026d6d4492b0407d1ce41fb7c5b8e2a.tar.gz chocula-d30490e66026d6d4492b0407d1ce41fb7c5b8e2a.zip  | |
check_issn_urls.py: yet another corner-case
Diffstat (limited to 'check_issn_urls.py')
| -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  | 
