Module: check_mk
Branch: master
Commit: 76af8078b194f9e7e666ab8e3980b778dd80ec5f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=76af8078b194f9…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 8 10:28:10 2013 +0100
Fixed exception in latest change
---
web/htdocs/wato.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 16501a8..c908506 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -2354,6 +2354,8 @@ def mode_diag_host(phase):
def ajax_diag_host():
try:
+ prepare_folder_info()
+
if not html.check_transaction():
return
@@ -2392,7 +2394,8 @@ def ajax_diag_host():
# Second is treated as text output
html.write("%s %s" % (result[0], html.attrencode(result[1])))
except Exception, e:
- html.write("1 %s" % _("Exception: %s") %
html.attrencode(str(e)))
+ import traceback
+ html.write("1 %s" % _("Exception: %s") %
html.attrencode(traceback.format_exc()))
#.
# .-Inventory & Services-------------------------------------------------.