fix #11 retry Overpass

This commit is contained in:
SebF 2021-11-06 19:33:43 +01:00
parent 8dec9b769b
commit 567b356a5e
1 changed files with 2 additions and 2 deletions

View File

@ -188,9 +188,9 @@ def main():
break
except errors.ApiError:
if nb_essai == MAX_RETRY:
if nb_essai >= MAX_RETRY - 1:
logging.error("Trop d'erreurs d'API - abandon")
exit()
exit()
logging.error(f"Erreur API - on retente dans {RETRY_DELAY}s")
except: