mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
lint: E8713(test-for-membership-should-be-not-in)
This commit is contained in:
parent
5a1b2ca486
commit
c462139dbb
@ -707,7 +707,7 @@ class Schedule(object):
|
|||||||
# Although catch-all exception handlers are bad, the exception here
|
# Although catch-all exception handlers are bad, the exception here
|
||||||
# is to let the exception bubble up to the top of the thread context,
|
# is to let the exception bubble up to the top of the thread context,
|
||||||
# where the thread will die silently, which is worse.
|
# where the thread will die silently, which is worse.
|
||||||
if not 'return' in ret:
|
if 'return' not in ret:
|
||||||
ret['return'] = "Unhandled exception running {0}".format(ret['fun'])
|
ret['return'] = "Unhandled exception running {0}".format(ret['fun'])
|
||||||
ret['success'] = False
|
ret['success'] = False
|
||||||
ret['retcode'] = 254
|
ret['retcode'] = 254
|
||||||
|
Loading…
Reference in New Issue
Block a user