catch BaseException to force stdout flush when process dies
This commit is contained in:
parent
788cda4925
commit
383a9f6eeb
@ -327,11 +327,10 @@ def main() -> None:
|
|||||||
dynamic_whitelist=args.dynamic_whitelist,
|
dynamic_whitelist=args.dynamic_whitelist,
|
||||||
)
|
)
|
||||||
old_state = new_state
|
old_state = new_state
|
||||||
|
|
||||||
except RuntimeError:
|
|
||||||
logger.exception('Got fatal exception!')
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
logger.info('Got SIGINT, aborting ...')
|
logger.info('Got SIGINT, aborting ...')
|
||||||
|
except BaseException:
|
||||||
|
logger.exception('Got fatal exception!')
|
||||||
finally:
|
finally:
|
||||||
cleanup()
|
cleanup()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user