diff --git a/monitoring/nagios b/monitoring/nagios index a66583b0c62..9219766b86a 100644 --- a/monitoring/nagios +++ b/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') ##################################################################