Module: check_mk
Branch: master
Commit: 739efac89b38fb02c7772029fa40de1f3036f9bb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=739efac89b38fb…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jun 20 10:54:03 2012 +0200
FIX: fix problem in showing exceptions (due to help function)
---
ChangeLog | 1 +
web/htdocs/htmllib.py | 6 +++++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d33cc7f..d6fa8db 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
Multisite:
* Show number of rows and number of selected rows in header line
(also for WATO hosts table)
+ * FIX: fix problem in showing exceptions (due to help function)
WATO:
* Main menu of ruleeditor (Host & Service Parameters) now has
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 1828f83..c9426ad 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -815,7 +815,11 @@ class html:
(_("Reloading..."), title))
self.write('<td width=240 class=right><span
id=headinfo></span>%s <b id=headertime>%s</b>' %
(login_text, time.strftime("%H:%M")))
- self.help_visible = config.load_user_file("help", False) # cache for
later usage
+ try:
+ self.help_visible = config.load_user_file("help", False) # cache
for later usage
+ except:
+ self.help_visible = False
+
cssclass = self.help_visible and "active" or "passive"
self.write('<a id=helpbutton class=%s href="#"
onclick="help_toggle();" style="display: none"></a>' %
cssclass)