forked from Github-Mirrors/canaille
fix: display a 500 error when SMTP configuration is defined but null
this improves tests coverage
This commit is contained in:
parent
c5317b7f5b
commit
c28a1e9351
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ def smtp_needed():
|
|||
def wrapper(view_function):
|
||||
@wraps(view_function)
|
||||
def decorator(*args, **kwargs):
|
||||
if "SMTP" in current_app.config["CANAILLE"]:
|
||||
if current_app.config["CANAILLE"].get("SMTP"):
|
||||
return view_function(*args, **kwargs)
|
||||
|
||||
message = _("No SMTP server has been configured")
|
||||
|
|
Loading…
Reference in a new issue