Refactor flash function call to flask_flash for better error handling when the database has fallen back

This commit is contained in:
Théophile Diot 2024-09-30 16:01:27 +02:00
parent 174e437046
commit 773d50738f
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -153,7 +153,7 @@ def inject_variables():
if not request.path.startswith("/loading"):
if not changes_ongoing and metadata["failover"]:
flash(
flask_flash(
"The last changes could not be applied because it creates a configuration error on NGINX, please check the logs for more information. The configured fell back to the last working one.",
"error",
)