[Core] Fix missing `await in code of redbot --edit`. (#3256)

* Update __main__.py

* Create 3256.misc.rst
This commit is contained in:
jack1142 2020-01-03 00:53:40 +01:00 committed by Michael H
parent ec6877dbc6
commit 42e3f73088
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Fix missing ``await`` in code of ``redbot --edit``.

View File

@ -282,7 +282,7 @@ async def run_bot(red: Red, cli_flags: Namespace):
if cli_flags.edit: if cli_flags.edit:
try: try:
edit_instance(red, cli_flags) await edit_instance(red, cli_flags)
except (KeyboardInterrupt, EOFError): except (KeyboardInterrupt, EOFError):
print("Aborted!") print("Aborted!")
finally: finally: