cayennes / kanji-colorize

a script and anki addon to turn KanjiVG data into colored stroke order diagrams
119 stars 26 forks source link

Error when closing the 'Add' dialog while the 'Kanji' field has the focus #30

Closed jtownzen closed 9 years ago

jtownzen commented 10 years ago

I'm using kanji-colorize with Anki 2.0.24 on Linux Mint 16, and if I open the 'Add' dialog and then close it while the 'Kanji' field has the focus, Anki displays the following error when I close the dialog using the 'Close' button (but not if I close using the 'X' button in the titlebar):

Traceback (most recent call last): File "/usr/share/anki/aqt/progress.py", line 69, in handler func() File "/usr/share/anki/aqt/editor.py", line 468, in onUpdate self.checkValid() File "/usr/share/anki/aqt/editor.py", line 573, in checkValid for f in self.note.fields: AttributeError: 'NoneType' object has no attribute 'fields'

cayennes commented 9 years ago

Fixed by pull request #33