Skip to content

Commit

Permalink
KeyError in autoplay method
Browse files Browse the repository at this point in the history
  • Loading branch information
shinkuan committed Apr 9, 2024
1 parent c5694fe commit 7b4632d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,10 @@ def redo_action(self) -> None:

def autoplay(self) -> None:
isliqi = self.isLiqi
self.action.mjai2action(self.app.mjai_msg_dict[self.flow_id][-1], self.tehai, self.tsumohai, isliqi, False)
try:
self.action.mjai2action(self.app.mjai_msg_dict[self.flow_id][-1], self.tehai, self.tsumohai, isliqi, False)
except KeyError:
return
self.isLiqi = False
if self.dahai_verfication_job is not None:
self.dahai_verfication_job.stop()
Expand Down

0 comments on commit 7b4632d

Please sign in to comment.