From a6df597a208171b0ddffddd34edff11a68c75c3a Mon Sep 17 00:00:00 2001 From: Nikhil Jha Date: Tue, 23 Apr 2024 15:41:28 -0700 Subject: [PATCH] :bug: proper error handling --- sopel/plugins/create.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sopel/plugins/create.py b/sopel/plugins/create.py index ab55ba3..c35b50b 100644 --- a/sopel/plugins/create.py +++ b/sopel/plugins/create.py @@ -39,7 +39,7 @@ def thread_func(): function=func.__name__, exception=ex, ) - bot.say("#rebuild", error_msg) + bot.say(error_msg, "#rebuild") bot.handle_error( textwrap.dedent( """ @@ -136,7 +136,7 @@ def celery_listener(bot): def bot_announce(targets, message): for target in targets: - bot.say(target, message) + bot.say(message, target) def on_account_created(event): request = event["request"]