Skip to content

Commit

Permalink
more work on async
Browse files Browse the repository at this point in the history
  • Loading branch information
pvyParts committed Oct 12, 2024
1 parent 6fa4c28 commit dc15c7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aadiscordbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ async def on_application_command_error(self, context: ApplicationContext, except
if app_settings.DISCORD_BOT_SEND_FAILURE_MESSAGES and app_settings.DISCORD_BOT_FAILURE_MESSAGES_CHANNEL:
message = [f"`{context.command}` failed for `{context.author}`\n",
f"**Exception:** ```{exception}```",
f"\n**Interaction:** ```{str(context.interaction.data).replace("`", "\'")}```",
f"\n**Interaction:** ```{str(context.interaction.data).replace("`", " '")}```",
"\n**Trace:**```"]
message += traceback.format_tb(
exception.original.__traceback__)
Expand Down
4 changes: 2 additions & 2 deletions aadiscordbot/cogs/reaction_roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ async def rem_react_listener(self, payload):
if payload.emoji.id is not None:
emoji = payload.emoji.id
try:
rr_binds = ReactionRoleBinding.objects.get(
rr_binds = ReactionRoleBinding.objects.aget(
message=rr_msg, emoji=emoji)
except ReactionRoleBinding.DoesNotExist:
try:
rr_binds = ReactionRoleBinding.objects.get(
rr_binds = ReactionRoleBinding.objects.aget(
message=rr_msg, emoji=payload.emoji.name)
except ReactionRoleBinding.DoesNotExist:
return await self.clean_emojis(payload)
Expand Down

0 comments on commit dc15c7c

Please sign in to comment.