[Core] Removed useless Python version check

Anything before Python 3.5 would raise a syntax error
This commit is contained in:
Twentysix 2017-04-22 01:36:04 +02:00
parent d80a660e95
commit aa76966f99

10
red.py
View File

@ -9,7 +9,6 @@ import datetime
import subprocess import subprocess
try: try:
assert sys.version_info >= (3, 5)
from discord.ext import commands from discord.ext import commands
import discord import discord
except ImportError: except ImportError:
@ -17,13 +16,7 @@ except ImportError:
"Consult the guide for your operating system " "Consult the guide for your operating system "
"and do ALL the steps in order.\n" "and do ALL the steps in order.\n"
"https://twentysix26.github.io/Red-Docs/\n") "https://twentysix26.github.io/Red-Docs/\n")
sys.exit() sys.exit(1)
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()
from cogs.utils.settings import Settings from cogs.utils.settings import Settings
from cogs.utils.dataIO import dataIO from cogs.utils.dataIO import dataIO
@ -633,6 +626,7 @@ if __name__ == '__main__':
bot.settings.email = None bot.settings.email = None
bot.settings.password = None bot.settings.password = None
bot.settings.save_settings() bot.settings.save_settings()
print("Login credentials have been reset.")
except KeyboardInterrupt: except KeyboardInterrupt:
loop.run_until_complete(bot.logout()) loop.run_until_complete(bot.logout())
except Exception as e: except Exception as e: