From abccdbb52e3c037d61fe18f423651f471b5edce0 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 30 May 2019 17:11:08 +0100 Subject: [PATCH] Check sys.version_info is greater-than-or-equal-to v3.6.0 --- start.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/start.py b/start.py index 218edc74..e9e9104e 100755 --- a/start.py +++ b/start.py @@ -49,6 +49,10 @@ 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()])