diff --git a/freqtrade/main.py b/freqtrade/main.py index 809ab3c7a..35fbccfa3 100755 --- a/freqtrade/main.py +++ b/freqtrade/main.py @@ -3,8 +3,14 @@ Main Freqtrade bot script. Read the documentation to know what cli arguments you need. """ -import logging + import sys +# check min. python version +if sys.version_info < (3, 6): + sys.exit("Freqtrade requires Python version >= 3.6") + +# flake8: noqa E402 +import logging from argparse import Namespace from typing import List @@ -26,10 +32,6 @@ def main(sysargv: List[str]) -> None: worker = None return_code = 1 - # check min. python version - if sys.version_info < (3, 6): - raise SystemError("Freqtrade requires Python version >= 3.6") - arguments = Arguments( sysargv, 'Free, open source crypto trading bot'