File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -166,9 +166,11 @@ async def ok_callback(self, interaction: discord.Interaction):
166166 async def finish_confirmation (self , interaction : discord .Interaction ):
167167 self .game .last_interaction = interaction
168168 self .ignore_interactions ()
169- self .disable_all_items ()
170- self .remove_item (self .action_row )
171- self .remove_item (self .timer_display )
172- await interaction .edit (view = self )
173- if self .ok_callback_action :
174- await self .ok_callback_action (interaction )
169+ try :
170+ self .remove_item (self .action_row )
171+ self .remove_item (self .timer_display )
172+ self .disable_all_items ()
173+ await interaction .edit (view = self )
174+ finally :
175+ if self .ok_callback_action :
176+ await self .ok_callback_action (interaction )
You can’t perform that action at this time.
0 commit comments