aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-09-02 12:27:12 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-09-02 12:27:23 +0100
commit36f4d36db620e16860e4e10a56fcc5e143c42f69 (patch)
tree0a501c94e8be838490773332045e572e099d877a
parentReflow readme and add note on docker route at the top (diff)
downloadpaper2remarkable-36f4d36db620e16860e4e10a56fcc5e143c42f69.tar.gz
paper2remarkable-36f4d36db620e16860e4e10a56fcc5e143c42f69.zip
Bugfix for sleep
-rwxr-xr-xarxiv2remarkable.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/arxiv2remarkable.py b/arxiv2remarkable.py
index 877078c..9ab4b96 100755
--- a/arxiv2remarkable.py
+++ b/arxiv2remarkable.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-__version__ = "0.3.3"
+__version__ = "0.3.4"
__author__ = "G.J.J. van den Burg"
"""
@@ -266,8 +266,8 @@ class Provider(metaclass=abc.ABCMeta):
except requests.exceptions.ConnectionError:
error = True
if error or not res.ok:
- time.sleep(5)
self.warn("Error getting url %s. Retrying in 5 seconds" % url)
+ time.sleep(5)
continue
self.log("Downloading url: %s" % url)
return res.content