use finally instead of catching baseexception

This commit is contained in:
Daniel Wallace 2018-08-30 12:10:03 -05:00 committed by rallytime
parent de98be6093
commit b878f01662
No known key found for this signature in database
GPG Key ID: E8F1A4B90D0DEA19

View File

@ -156,9 +156,8 @@ def minion_process():
log.info('waiting random_reauth_delay %ss', delay) log.info('waiting random_reauth_delay %ss', delay)
time.sleep(delay) time.sleep(delay)
sys.exit(salt.defaults.exitcodes.SALT_KEEPALIVE) sys.exit(salt.defaults.exitcodes.SALT_KEEPALIVE)
except BaseException: finally:
lock.acquire(blocking=True) lock.acquire(blocking=True)
raise
def salt_minion(): def salt_minion():