Module: check_mk
Branch: master
Commit: c1190822b171aca85ba88c46e89706b51967e3bc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c1190822b171ac…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 5 14:10:15 2014 +0100
do not catch manpage parsing errors in debug mode
---
modules/check_mk.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 8fe621e..4b0eb4b 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -3608,12 +3608,16 @@ def read_manpage_catalog():
try:
parsed = parse_man_header(checkname, path)
except Exception, e:
+ if opt_debug:
+ raise
sys.stderr.write('ERROR: Skipping invalid manpage: %s: %s\n' %
(checkname, e))
continue
try:
cat = parsed["catalog"]
except KeyError:
+ if opt_debug:
+ raise
sys.stderr.write('ERROR: Skipping invalid manpage: %s (Catalog info
missing)\n' % checkname)
continue