diff options
| -rw-r--r-- | paper2remarkable/utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/paper2remarkable/utils.py b/paper2remarkable/utils.py index 859ce6c..592dcd3 100644 --- a/paper2remarkable/utils.py +++ b/paper2remarkable/utils.py @@ -94,8 +94,9 @@ def get_content_type_with_retry(url, tries=5, cookiejar=None): count += 1 error = False try: - res = requests.head(url, headers=HEADERS, cookies=jar, - allow_redirects=True) + res = requests.head( + url, headers=HEADERS, cookies=jar, allow_redirects=True + ) except requests.exceptions.ConnectionError: error = True if error or not res.ok: |
