Refactor global configuration error handling

This commit is contained in:
Théophile Diot 2024-02-22 19:56:37 +01:00
parent f6566235ac
commit 8343ff7d55
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -857,7 +857,7 @@ def global_config():
del variables[variable]
if not variables:
return redirect_flash_error("The global configuration was not edited because all values had the default value.", "global_config", True)
return redirect_flash_error("The global configuration was not edited because no values were changed.", "global_config", True)
error = app.config["CONFIG"].check_variables(variables, True)