move python version check to the top

This commit is contained in:
hroff-1902 2019-05-28 23:04:39 +03:00
parent 7b968a2401
commit 536c8fa454

View File

@ -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'