From 168ee165b9c2eb0d4827c2a48e5e06db60da00fa Mon Sep 17 00:00:00 2001 From: Lonami Date: Tue, 30 Apr 2019 20:44:08 +0200 Subject: [PATCH] await the now async remove_plugin --- uniborg/_core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uniborg/_core.py b/uniborg/_core.py index 7475028..43d8bd1 100644 --- a/uniborg/_core.py +++ b/uniborg/_core.py @@ -17,7 +17,7 @@ async def load_reload(event): try: if shortname in borg._plugins: - borg.remove_plugin(shortname) + await borg.remove_plugin(shortname) borg.load_plugin(shortname) msg = await event.respond( @@ -39,7 +39,7 @@ async def remove(event): if shortname == "_core": msg = await event.respond(f"Not removing {shortname}") elif shortname in borg._plugins: - borg.remove_plugin(shortname) + await borg.remove_plugin(shortname) msg = await event.respond(f"Removed plugin {shortname}") else: msg = await event.respond(f"Plugin {shortname} is not loaded")