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
1 changed files with 4 additions and 1 deletions

View File

@ -396,7 +396,10 @@ def web_get_domains():
@authorized_personnel_only
def 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