1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-25 07:47:05 +00:00

Throw failure reason (web update)

This commit is contained in:
David Duque 2020-04-20 18:59:02 +01:00
parent 3396bdbb22
commit 7f5a939e50
No known key found for this signature in database
GPG Key ID: 2F327738A3C0AE3A

View File

@ -396,7 +396,10 @@ def web_get_domains():
@authorized_personnel_only @authorized_personnel_only
def web_update(): def web_update():
from web_update import do_web_update from web_update import do_web_update
return do_web_update(env) try:
return do_web_update(env)
except Exception as e:
return (str(e), 500)
# System # System