mortii / anki-morphs

A MorphMan fork rebuilt from the ground up with a focus on simplicity, performance, and a codebase with minimal technical debt.
https://mortii.github.io/anki-morphs/
GNU Affero General Public License v3.0
61 stars 9 forks source link

randomly error when finished reviewing cards #26

Closed Vilhelm-Ian closed 1 year ago

Vilhelm-Ian commented 1 year ago

Sometimes when I finished reviewing my cards I wwould get 'addons21/ankimorphs-alpha/init.py', line 157, in update_seen_morphs am_db.update_seen_unknown_morph_single_card(mw.reviewer.card.id) AttributeError: 'NoneType' object has no attribute 'id'. The error only gave a pop box and didn't interfier in any otherway. It can just be ignored

mortii commented 1 year ago

Yeah I just experienced the same thing. I think it only happens at the end of a deck review, where the reviewer doesn't have a current card anymore. Just ignoring it should be fine I think.