mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 04:03:55 +00:00
fix reference before assignment
This commit is contained in:
parent
78bafee39d
commit
1332ab397f
|
@ -40,6 +40,7 @@ def main(sysargv: List[str]) -> None:
|
||||||
logging.getLevelName(args.loglevel)
|
logging.getLevelName(args.loglevel)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
freqtrade = None
|
||||||
try:
|
try:
|
||||||
# Load and validate configuration
|
# Load and validate configuration
|
||||||
configuration = Configuration(args)
|
configuration = Configuration(args)
|
||||||
|
@ -56,6 +57,7 @@ def main(sysargv: List[str]) -> None:
|
||||||
except BaseException:
|
except BaseException:
|
||||||
logger.exception('Fatal exception!')
|
logger.exception('Fatal exception!')
|
||||||
finally:
|
finally:
|
||||||
|
if freqtrade:
|
||||||
freqtrade.clean()
|
freqtrade.clean()
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user