Module: check_mk
Branch: master
Commit: a96e6f1ddada967922c52bae8cd9c987d48f3901
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a96e6f1ddada96…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Oct 8 09:58:08 2014 +0200
Detect syntax error while loading reporting module
---
web/htdocs/index.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/index.py b/web/htdocs/index.py
index eeeb2be..f4c85b0 100644
--- a/web/htdocs/index.py
+++ b/web/htdocs/index.py
@@ -38,7 +38,9 @@ import livestatus
import defaults, config, login, userdb, hooks, visuals, default_permissions
try:
import reporting
-except 1:
+except SyntaxError:
+ raise
+except:
reporting = None
from html_mod_python import *