diff --git a/app/models/query_daily.py b/app/models/query_daily.py index eb858e3a..ec2de025 100644 --- a/app/models/query_daily.py +++ b/app/models/query_daily.py @@ -143,7 +143,7 @@ def get(self): ] app.LOG.error(error) - if "status_code" in response and response["status_code"] == 409: + if "status_code" in response and (response["status_code"] == 409 or response["status_code"] == 400): finish = False error = ["Arrêt de la récupération des données suite à une erreur.", f"Prochain lancement à {datetime.datetime.now() + datetime.timedelta(seconds=app.CONFIG.get('cycle'))}"] diff --git a/app/models/query_detail.py b/app/models/query_detail.py index 8d13bd06..45cfa422 100644 --- a/app/models/query_detail.py +++ b/app/models/query_detail.py @@ -175,7 +175,7 @@ def get(self): ] app.LOG.error(error) - if "status_code" in response and response["status_code"] == 409: + if "status_code" in response and (response["status_code"] == 409 or response["status_code"] == 400): finish = False error = ["Arrêt de la récupération des données suite à une erreur.", f"Prochain lancement à {datetime.datetime.now() + datetime.timedelta(seconds=app.CONFIG.get('cycle'))}"] diff --git a/app/templates/models/__pycache__/configuration.cpython-39.pyc b/app/templates/models/__pycache__/configuration.cpython-39.pyc index a66f8296..7ea26d6f 100644 Binary files a/app/templates/models/__pycache__/configuration.cpython-39.pyc and b/app/templates/models/__pycache__/configuration.cpython-39.pyc differ diff --git a/app/templates/models/configuration.py b/app/templates/models/configuration.py index 38bb5e51..304cb4a9 100644 --- a/app/templates/models/configuration.py +++ b/app/templates/models/configuration.py @@ -267,7 +267,7 @@ def html(self): configuration += f'''