mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
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,
|
||||
)
|
||||
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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user