forked from indymedia/epicyon
Show number of tries
parent
ee8679a731
commit
cfd468c595
2
utils.py
2
utils.py
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue