Module: check_mk
Branch: master
Commit: eae2141587a4a5e9a205be77c4d0bdd597af74fb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=eae2141587a4a5…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 8 14:50:32 2015 +0100
Fixed handling of some livestatus exceptions
---
web/htdocs/index.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/index.py b/web/htdocs/index.py
index 3963157..90bba75 100644
--- a/web/htdocs/index.py
+++ b/web/htdocs/index.py
@@ -243,10 +243,10 @@ def handler(req, fields = None, profiling = True):
except (MKUserError, MKAuthException, MKUnauthenticatedException, MKConfigError,
MKGeneralException,
livestatus.MKLivestatusNotFoundError, livestatus.MKLivestatusException), e:
ty = type(e)
- if ty ==livestatus.MKLivestatusNotFoundError:
+ if ty == livestatus.MKLivestatusNotFoundError:
title = _("Data not found")
plain_title = _("Livestatus-data not found")
- elif ty ==livestatus.MKLivestatusException:
+ elif isinstance(e, livestatus.MKLivestatusException):
title = _("Livestatus problem")
plain_title = _("Livestatus problem")
else: