module(nagios): don't catch `SystemExit`

If we do this, we risk outputting two JSON payloads, which will be
unparsable.
reviewable/pr18780/r1
Jens Rantil 11 years ago
parent c475814519
commit 71590827ab

@ -214,7 +214,7 @@ def main():
m = int(minutes)
if not isinstance(m, types.IntType):
module.fail_json(msg='minutes must be a number')
except:
except Exception:
module.fail_json(msg='invalid entry for minutes')
##################################################################

Loading…
Cancel
Save