This causes a few steps to trigger:
- Open the reviewer
- Open the EditCurrent
- Open the browser
- Delete the current card in the browser
- Close the EditCurrent
This gives me the following exception:
Caught exception:
Traceback (most recent call last):
File "aqt/webview.py", line 493, in handler
File "aqt/editor.py", line 485, in <lambda>
File "aqt/editcurrent.py", line 72, in _saveAndClose
File "aqt/main.py", line 646, in moveToState
File "aqt/main.py", line 668, in _reviewState
File "aqt/reviewer.py", line 65, in show
File "aqt/reviewer.py", line 118, in nextCard
File "aqt/reviewer.py", line 183, in _showQuestion
File "anki/cards.py", line 113, in question
File "anki/cards.py", line 132, in render_output
File "anki/template.py", line 115, in from_existing_card
File "anki/cards.py", line 142, in note
File "anki/collection.py", line 309, in getNote
File "anki/notes.py", line 34, in __init__
File "anki/notes.py", line 40, in load
File "anki/rsbackend_gen.py", line 350, in get_note
File "anki/rsbackend.py", line 265, in _run_command
anki.rsbackend.NotFoundError
You can only escape it by force closing Anki.
Version 2.1.30 (06a69c25)
Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
macOS Catalina 10.15.5 (19F101)
I think the issue is:
-
EditCurrent
pushes its active card onto the reviewers cardQueue - main window calls
self.reviewer.show()
-
show()
callsnext()
, which takes the topmost card from the cardQueue, which was already deleted by the browser