Check sys.version_info is greater-than-or-equal-to v3.6.0

This commit is contained in:
jesopo 2019-05-30 17:11:08 +01:00
parent 123671aac9
commit abccdbb52e

View file

@ -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()])