Module: check_mk
Branch: master
Commit: b0d3aab0c0c612a7cb536610fbf90c483e16295f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b0d3aab0c0c612…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Mar 9 18:05:32 2016 +0100
Fixed missing import of MKLivestatusNotFoundError exception
---
web/htdocs/metrics.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/metrics.py b/web/htdocs/metrics.py
index 00df856..42bcc2b 100644
--- a/web/htdocs/metrics.py
+++ b/web/htdocs/metrics.py
@@ -39,6 +39,7 @@ import config, defaults, pagetypes, table
import sites
from lib import *
from valuespec import *
+from livestatus import MKLivestatusNotFoundError
try:
import simplejson as json
@@ -1440,7 +1441,7 @@ def host_service_graph_dashlet_cmk(graph_specification,
custom_graph_render_opti
graph_definition = graph_definitions[0]
else:
raise MKGeneralException(_("Failed to calculate a graph
definition."))
- except livestatus.MKLivestatusNotFoundError:
+ except MKLivestatusNotFoundError:
html.write("<div class=error>%s</div>" %
html.attrencode(_("Cannot reander graphs: cannot fetch data via Livestatus")))
return