Supress an error raised from deferring

This commit is contained in:
Emily Doherty 2024-12-14 20:38:12 -08:00
parent ceaabe3dac
commit 9ddba0d9b1

View File

@ -280,7 +280,7 @@ class Tracker(Extension):
"Most interactions will happen in direct messages with GoblinBot here.\n"
"You can remove your user data and alerts at any time using ```/remove-registration```\n"
)
await ctx.defer(edit_origin=True)
await ctx.defer(edit_origin=True, suppress_error=True)
@component_callback("high_alert_button")
async def high_alert_button(self, ctx: ComponentContext):
@ -441,7 +441,7 @@ class Tracker(Extension):
raise TimeoutError
else:
menu.disabled = True
await component.ctx.defer(edit_origin=True)
await component.ctx.defer(edit_origin=True, suppress_error=True)
await message.edit(context=ctx, components=menu)
return AlertType.from_str(component.ctx.values[0])