amprolla

devuan's apt repo merger
git clone git://parazyd.org/amprolla.git
Log | Files | Refs | README | LICENSE

commit f82aba29785dd49fa0ec1425798de134366e2abd
parent 9bd473b1473e43464125431c544305e5a132c941
Author: parazyd <parazyd@dyne.org>
Date:   Sun, 23 Jul 2017 14:56:20 +0200

revert handling of requests.exceptions.ReadTimeout

needs investigation because the thread gets stuck upon handling

Diffstat:
Mlib/net.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/net.py b/lib/net.py @@ -21,8 +21,8 @@ def download(uris): try: r = requests.get(url, stream=True, timeout=20) - except (requests.exceptions.ConnectionError, - requests.exceptions.ReadTimeout) as e: + # TODO: investigate also requests.exceptions.ReadTimeout + except requests.exceptions.ConnectionError as e: warn('Caught exception: "%s". Retrying...' % e) return download(uris)