From e47f638a240e7515913f6d7eb2b6cd301888dc49 Mon Sep 17 00:00:00 2001 From: Federico Leva Date: Mon, 21 May 2018 15:53:51 +0300 Subject: [PATCH] Define "check" before running checkAPI() Traceback (most recent call last): File "./dumpgenerator.py", line 2294, in main() File "./dumpgenerator.py", line 2239, in main config, other = getParameters(params=params) File "./dumpgenerator.py", line 1587, in getParameters if api and check: UnboundLocalError: local variable 'check' referenced before assignment --- dumpgenerator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dumpgenerator.py b/dumpgenerator.py index 4332ccd..0519f4a 100755 --- a/dumpgenerator.py +++ b/dumpgenerator.py @@ -1575,6 +1575,7 @@ def getParameters(params=[]): retry = 0 maxretries = args.retries retrydelay = 20 + check = None while retry < maxretries: try: check = checkAPI(api=api, session=session)