mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Fix: None check
This commit is contained in:
parent
44ade0653e
commit
3577145f95
1 changed files with 1 additions and 1 deletions
|
|
@ -551,7 +551,7 @@ class Reviewer:
|
|||
def after_answer(changes: OpChanges) -> None:
|
||||
if gui_hooks.reviewer_did_answer_card.count() > 0:
|
||||
self.card.load()
|
||||
suspended = self.card and self.card.queue < 0
|
||||
suspended = self.card is not None and self.card.queue < 0
|
||||
self._after_answering(ease)
|
||||
if sched.state_is_leech(answer.new_state):
|
||||
self.onLeech(suspended)
|
||||
|
|
|
|||
Loading…
Reference in a new issue