Fix changing instance name with redbot --edit (#5540)

This commit is contained in:
aikaterna 2022-05-31 15:36:07 -07:00 committed by GitHub
parent acdc1df084
commit 1cf497b128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,7 @@ def _edit_instance_name(old_name, new_name, confirm_overwrite, no_prompt):
" run this command with --overwrite-existing-instance flag."
)
elif not no_prompt and confirm("Would you like to change the instance name?", default=False):
name = get_name()
name = get_name("")
if name in _get_instance_names():
print(
"WARNING: An instance already exists with this name. "