aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2020-02-21 16:24:19 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2020-02-21 16:24:19 +0000
commit806f22a6245c6379df0fb72255b08b8d1850eb71 (patch)
tree26bc98d5a2069c9967dd2e164f706358e765d272
parentBugfix for creating nested directories (diff)
downloadpaper2remarkable-806f22a6245c6379df0fb72255b08b8d1850eb71.tar.gz
paper2remarkable-806f22a6245c6379df0fb72255b08b8d1850eb71.zip
Code formatting
-rw-r--r--paper2remarkable/utils.py5
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: