Module: check_mk
Branch: master
Commit: d8db900d603c7c57a781ce890f09e0ac65a214ed
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d8db900d603c7c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Oct 30 10:51:14 2014 +0100
Recoded reporting module import handling
---
web/htdocs/index.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/index.py b/web/htdocs/index.py
index 22e982a..67ee234 100644
--- a/web/htdocs/index.py
+++ b/web/htdocs/index.py
@@ -36,11 +36,10 @@ import sys, os, pprint
from lib import *
import livestatus
import defaults, config, login, userdb, hooks, visuals, default_permissions
-try:
+
+if os.path.exists(os.path.dirname(os.path.abspath(__file__)) + '/reporting.py'):
import reporting
-except SyntaxError:
- raise
-except:
+else:
reporting = None
from html_mod_python import *