mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
Remove a specific f-string usage in the launcher. (#3002)
* @Kowlin I saw that error * style
This commit is contained in:
parent
575e55cb0f
commit
1ee5238ad7
1
changelog.d/3002.bugfix.rst
Normal file
1
changelog.d/3002.bugfix.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
remove f-string usage in launcher to prevent our error handling from cauing an error.
|
||||||
@ -450,9 +450,10 @@ def main():
|
|||||||
args, flags_to_pass = parse_cli_args()
|
args, flags_to_pass = parse_cli_args()
|
||||||
if not PYTHON_OK:
|
if not PYTHON_OK:
|
||||||
print(
|
print(
|
||||||
f"Python {'.'.join(map(str, MIN_PYTHON_VERSION))} is required to run Red, but you "
|
"Python {req_ver} is required to run Red, but you have {sys_ver}!".format(
|
||||||
f"have {sys.version}! Please update Python."
|
req_ver=".".join(map(str, MIN_PYTHON_VERSION)), sys_ver=sys.version
|
||||||
)
|
)
|
||||||
|
) # Don't make an f-string, these may not exist on the python version being rejected!
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
if args.debuginfo: # Check first since the function triggers an exit
|
if args.debuginfo: # Check first since the function triggers an exit
|
||||||
debug_info()
|
debug_info()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user