From 7f5a939e5066851850623187cd934857b5a4fabb Mon Sep 17 00:00:00 2001 From: David Duque Date: Mon, 20 Apr 2020 18:59:02 +0100 Subject: [PATCH] Throw failure reason (web update) --- management/daemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/management/daemon.py b/management/daemon.py index 23a8eb41..26c0e872 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -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