From aa76966f99a6d83a6600c2bd2ff5395d378e82d4 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Sat, 22 Apr 2017 01:36:04 +0200 Subject: [PATCH] [Core] Removed useless Python version check Anything before Python 3.5 would raise a syntax error --- red.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/red.py b/red.py index a8408eaee..59050f8a7 100644 --- a/red.py +++ b/red.py @@ -9,7 +9,6 @@ import datetime import subprocess try: - assert sys.version_info >= (3, 5) from discord.ext import commands import discord except ImportError: @@ -17,13 +16,7 @@ except ImportError: "Consult the guide for your operating system " "and do ALL the steps in order.\n" "https://twentysix26.github.io/Red-Docs/\n") - sys.exit() -except AssertionError: - print("Red needs Python 3.5 or superior.\n" - "Consult the guide for your operating system " - "and do ALL the steps in order.\n" - "https://twentysix26.github.io/Red-Docs/\n") - sys.exit() + sys.exit(1) from cogs.utils.settings import Settings from cogs.utils.dataIO import dataIO @@ -633,6 +626,7 @@ if __name__ == '__main__': bot.settings.email = None bot.settings.password = None bot.settings.save_settings() + print("Login credentials have been reset.") except KeyboardInterrupt: loop.run_until_complete(bot.logout()) except Exception as e: