fix #11 retry Overpass
This commit is contained in:
parent
8dec9b769b
commit
567b356a5e
4
rdoo.py
4
rdoo.py
@ -188,9 +188,9 @@ def main():
|
|||||||
break
|
break
|
||||||
except errors.ApiError:
|
except errors.ApiError:
|
||||||
|
|
||||||
if nb_essai == MAX_RETRY:
|
if nb_essai >= MAX_RETRY - 1:
|
||||||
logging.error("Trop d'erreurs d'API - abandon")
|
logging.error("Trop d'erreurs d'API - abandon")
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
logging.error(f"Erreur API - on retente dans {RETRY_DELAY}s")
|
logging.error(f"Erreur API - on retente dans {RETRY_DELAY}s")
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user