mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Core] Removed useless Python version check
Anything before Python 3.5 would raise a syntax error
This commit is contained in:
parent
d80a660e95
commit
aa76966f99
10
red.py
10
red.py
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user