From 42e3f7308856b9651a6ca8b41be3fb4560ab2c7e Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Fri, 3 Jan 2020 00:53:40 +0100 Subject: [PATCH] [Core] Fix missing ``await`` in code of ``redbot --edit``. (#3256) * Update __main__.py * Create 3256.misc.rst --- changelog.d/3256.misc.rst | 1 + redbot/__main__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/3256.misc.rst diff --git a/changelog.d/3256.misc.rst b/changelog.d/3256.misc.rst new file mode 100644 index 000000000..79c3cab5a --- /dev/null +++ b/changelog.d/3256.misc.rst @@ -0,0 +1 @@ +Fix missing ``await`` in code of ``redbot --edit``. diff --git a/redbot/__main__.py b/redbot/__main__.py index 2fe86a3a9..e8519fa46 100644 --- a/redbot/__main__.py +++ b/redbot/__main__.py @@ -282,7 +282,7 @@ async def run_bot(red: Red, cli_flags: Namespace): if cli_flags.edit: try: - edit_instance(red, cli_flags) + await edit_instance(red, cli_flags) except (KeyboardInterrupt, EOFError): print("Aborted!") finally: