From 36f4d36db620e16860e4e10a56fcc5e143c42f69 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 2 Sep 2019 12:27:12 +0100 Subject: Bugfix for sleep --- arxiv2remarkable.py | 4 ++-- 1 file 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 -- cgit v1.2.3