Module: check_mk
Branch: master
Commit: 2489ae8e1ece33e1f8e41f97dad4adc7587720b6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2489ae8e1ece33…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue May 10 11:12:45 2016 +0200
Make importing of module files handle --debug
---
modules/check_mk.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 26a4b10..a3c6c59 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -342,6 +342,8 @@ try:
load_module(module)
except Exception, e:
+ if opt_debug:
+ raise
sys.stderr.write("Cannot read module %s: %s\n" % (module, e))
sys.exit(5)