mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
use finally instead of catching baseexception
This commit is contained in:
parent
de98be6093
commit
b878f01662
1 changed files with 1 additions and 2 deletions
|
@ -156,9 +156,8 @@ def minion_process():
|
|||
log.info('waiting random_reauth_delay %ss', delay)
|
||||
time.sleep(delay)
|
||||
sys.exit(salt.defaults.exitcodes.SALT_KEEPALIVE)
|
||||
except BaseException:
|
||||
finally:
|
||||
lock.acquire(blocking=True)
|
||||
raise
|
||||
|
||||
|
||||
def salt_minion():
|
||||
|
|
Loading…
Add table
Reference in a new issue