From c298949d980d1d2388d6917dfa1330c8932ace37 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 22 Sep 2021 23:17:55 -0700 Subject: [PATCH] Fix tenacity, remove backoff. --- fdroidapk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdroidapk.py b/fdroidapk.py index 3eea220..52d100f 100644 --- a/fdroidapk.py +++ b/fdroidapk.py @@ -31,7 +31,6 @@ import sys import tenacity import time -from voussoirkit import backoff from voussoirkit import betterhelp from voussoirkit import downloady from voussoirkit import operatornotify @@ -40,10 +39,11 @@ from voussoirkit import pipeable from voussoirkit import vlogging log = vlogging.getLogger(__name__, 'fdroidapk') +vlogging.getLogger('urllib3').setLevel(vlogging.SILENT) session = requests.Session() my_tenacity = tenacity.retry( - retry=tenacity.retry_if_exception(requests.exceptions.ConnectionError), + retry=tenacity.retry_if_exception_type(requests.exceptions.ConnectionError), stop=tenacity.stop_after_attempt(5), wait=tenacity.wait_exponential(multiplier=2, min=3, max=60), reraise=True,