diff --git a/start.py b/start.py index e9e9104e..998587d0 100755 --- a/start.py +++ b/start.py @@ -1,6 +1,12 @@ #!/usr/bin/env python3 -import argparse, faulthandler, os, platform, sys, time +import sys + +if sys.version_info < (3, 6): + sys.stderr.write("BitBot requires python 3.6.0 or later\n") + sys.exit(1) + +import argparse, faulthandler, os, platform, time from src import Cache, Config, Database, EventManager, Exports, IRCBot from src import Logging, ModuleManager, Timers, utils @@ -49,10 +55,6 @@ if not log_level: log = Logging.Log(not args.no_logging, log_level, args.log_dir) -if sys.version_info < (3, 6): - sys.stderr.write("BitBot requires python 3.6.0 or later\n") - sys.exit(1) - log.info("Starting BitBot %s (Python v%s)", [IRCBot.VERSION, platform.python_version()])