kelciour / edit-field-during-review

3 stars 1 forks source link

TypeError: cannot unpack non-iterable NoneType object #6

Closed kelciour closed 4 years ago

kelciour commented 4 years ago

From the email message,

I have encountered this two times, happens when I delete a note with an editable field during review.

Anki 2.1.25 (898801eb) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-07-27 16:00:08

Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 34, in cmd
File "aqt\webview.py", line 114, in _onCmd
File "aqt\webview.py", line 518, in _onBridgeCmd
File "C:\Users\...\AppData\Roaming\Anki2\addons21\1020366288\__init__.py", line 81, in myLinkHandler
note = mw.col.getNote(nid)
File "lib\site-packages\anki\collection.py", line 289, in getNote
File "lib\site-packages\anki\notes.py", line 47, in __init__
File "lib\site-packages\anki\notes.py", line 61, in load
TypeError: cannot unpack non-iterable NoneType object