mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
fix handling of SystemExit
This commit is contained in:
parent
28c796a234
commit
6b144150c7
|
@ -52,13 +52,15 @@ def main(sysargv: List[str] = None) -> None:
|
|||
worker = Worker(args)
|
||||
worker.run()
|
||||
|
||||
except SystemExit as e:
|
||||
return_code = e
|
||||
except KeyboardInterrupt:
|
||||
logger.info('SIGINT received, aborting ...')
|
||||
return_code = 0
|
||||
except OperationalException as e:
|
||||
logger.error(str(e))
|
||||
return_code = 2
|
||||
except BaseException:
|
||||
except Exception:
|
||||
logger.exception('Fatal exception!')
|
||||
finally:
|
||||
if worker:
|
||||
|
|
Loading…
Reference in New Issue
Block a user