From c65ce60f714256dd8b1c9b09d9500415a237af46 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Fri, 2 Jul 2021 10:46:48 -0500 Subject: [PATCH] Pre-v5 Calibre fix for nsapa_proxy. --- fanficfare/nsapa_proxy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fanficfare/nsapa_proxy.py b/fanficfare/nsapa_proxy.py index c0e82002..7187ae96 100644 --- a/fanficfare/nsapa_proxy.py +++ b/fanficfare/nsapa_proxy.py @@ -167,7 +167,11 @@ class NSAPA_ProxyFetcher(RequestsFetcher): finally: retry_count += 1 #Needed to catch the raise - continue + + ## continue from finally: not valid in Python2 + ## (Calibre < v5). Also, continue here seems + ## unnecessary--we're at the end of the loop. --JM + # continue if retry_count == 5: # We exited the retry loop without any valid content,