Skip to content

Commit

Permalink
🐛 proper error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiljha committed Apr 23, 2024
1 parent 10c1881 commit a6df597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sopel/plugins/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
"""
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit a6df597

Please sign in to comment.