catch BaseException to force stdout flush when process dies

This commit is contained in:
gcarq 2017-11-21 20:24:52 +01:00
parent 788cda4925
commit 383a9f6eeb

View File

@ -327,11 +327,10 @@ def main() -> None:
dynamic_whitelist=args.dynamic_whitelist,
)
old_state = new_state
except RuntimeError:
logger.exception('Got fatal exception!')
except KeyboardInterrupt:
logger.info('Got SIGINT, aborting ...')
except BaseException:
logger.exception('Got fatal exception!')
finally:
cleanup()