Remove duplicate code

This commit is contained in:
Matthias 2019-05-29 19:46:46 +02:00
parent 9e4dd6f37f
commit 7b367818fc

View File

@ -28,21 +28,7 @@ def main(sysargv: List[str] = None) -> None:
This function will initiate the bot and start the trading loop.
:return: None
"""
set_loggers()
arguments = Arguments(
sysargv,
'Free, open source crypto trading bot'
)
args: Namespace = arguments.get_parsed_arg()
# A subcommand has been issued.
# Means if Backtesting or Hyperopt have been called we exit the bot
if hasattr(args, 'func'):
args.func(args)
return
worker = None
return_code = 1
try:
set_loggers()