mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Don't use a bare except!
Every time you use a bare except, Cthulu kills a kitten. Please, think of the kittens.
This commit is contained in:
parent
134f125b96
commit
c0fdb818f7
@ -2950,7 +2950,7 @@ class SyndicManager(MinionBase):
|
|||||||
yield tornado.gen.sleep(auth_wait) # TODO: log?
|
yield tornado.gen.sleep(auth_wait) # TODO: log?
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
raise
|
raise
|
||||||
except: # pylint: disable=W0702
|
except Exception:
|
||||||
failed = True
|
failed = True
|
||||||
log.critical(
|
log.critical(
|
||||||
'Unexpected error while connecting to %s',
|
'Unexpected error while connecting to %s',
|
||||||
|
Loading…
Reference in New Issue
Block a user