+1
-4
@@ -6,7 +6,6 @@ Read the documentation to know what cli arguments you need.
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
|
|
||||||
# check min. python version
|
# check min. python version
|
||||||
@@ -35,7 +34,7 @@ def main(sysargv: list[str] | None = None) -> None:
|
|||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return_code: Any = 1
|
return_code: int | None = None
|
||||||
try:
|
try:
|
||||||
setup_logging_pre()
|
setup_logging_pre()
|
||||||
asyncio_setup()
|
asyncio_setup()
|
||||||
@@ -62,8 +61,6 @@ def main(sysargv: list[str] | None = None) -> None:
|
|||||||
"`freqtrade --help` or `freqtrade <command> --help`."
|
"`freqtrade --help` or `freqtrade <command> --help`."
|
||||||
)
|
)
|
||||||
|
|
||||||
except SystemExit as e: # pragma: no cover
|
|
||||||
return_code = e
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
logger.info("SIGINT received, aborting ...")
|
logger.info("SIGINT received, aborting ...")
|
||||||
return_code = 0
|
return_code = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user