Remove duplicate code
This commit is contained in:
parent
9e4dd6f37f
commit
7b367818fc
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user