From c0fdb818f7d03da5e05377f3a8322d77ed75ac13 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Tue, 21 Aug 2018 16:24:31 -0500 Subject: [PATCH] Don't use a bare except! Every time you use a bare except, Cthulu kills a kitten. Please, think of the kittens. --- salt/minion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/minion.py b/salt/minion.py index eda718b352..c74b79dbc4 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -2950,7 +2950,7 @@ class SyndicManager(MinionBase): yield tornado.gen.sleep(auth_wait) # TODO: log? except KeyboardInterrupt: raise - except: # pylint: disable=W0702 + except Exception: failed = True log.critical( 'Unexpected error while connecting to %s',