From a413223df46d348ae9dfb207fc70e42920a01088 Mon Sep 17 00:00:00 2001 From: Samuel Hernandez Date: Sat, 18 Jul 2020 19:41:58 -0400 Subject: [PATCH] Fix version check --- ubot/micro_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubot/micro_bot.py b/ubot/micro_bot.py index 248403b..3f00670 100644 --- a/ubot/micro_bot.py +++ b/ubot/micro_bot.py @@ -11,7 +11,7 @@ from telethon.network.connection.tcpabridged import \ from .loader import Loader from .settings import Settings -if sys.version_info[0] < 3 or sys.version_info[1] < 6: +if sys.version_info.major < 3 or (sys.version_info.major == 3 and sys.version_info.minor < 6): print("This program requires at least Python 3.6.0 to work correctly, exiting.") sys.exit(1)