Show number of tries

main
Bob Mottram 2019-11-15 22:42:50 +00:00
parent ee8679a731
commit cfd468c595
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ def saveJson(jsonObject: {},filename: str) -> bool:
commentjson.dump(jsonObject, fp, indent=2, sort_keys=False) commentjson.dump(jsonObject, fp, indent=2, sort_keys=False)
return True return True
except: except:
print('WARN: saveJson') print('WARN: saveJson '+str(tries))
time.sleep(1) time.sleep(1)
tries+=1 tries+=1
return False return False