From 153df0a23ee169bf20c4b8c5b6356739286b74e4 Mon Sep 17 00:00:00 2001 From: Jens Rantil Date: Wed, 4 Dec 2013 13:55:16 +0100 Subject: [PATCH] module(nagios): don't catch `SystemExit` If we do this, we risk outputting two JSON payloads, which will be unparsable. --- library/monitoring/nagios | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/monitoring/nagios b/library/monitoring/nagios index a66583b0c6..9219766b86 100644 --- a/library/monitoring/nagios +++ b/library/monitoring/nagios @@ -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') ##################################################################