I got this error after I deleted card that is currently being displayed in the Study session.
This is the second time I get it. i reported this before somewhere on here some time ago.
subsequent errors are displayed as a box with an OK button rather than this frightening message.
database check was ok and nothing came out of it.
as far as i can tell, everything is fine. cards ok. review history intact. i closed and opened anki and my XXX pending reviews are right where i left them
Anki 2.1.61 (0c1eaf4c) Python 3.9.15 Qt 6.4.2 PyQt 6.4.0 Caught exception: Traceback (most recent call last): File "aqt.main", line 274, in on_focus_changed File "_aqt.hooks", line 3164, in __call__ File "aqt.main", line 801, in on_focus_did_change File "aqt.reviewer", line 184, in refresh_if_needed File "aqt.reviewer", line 213, in _redraw_current_card File "anki.cards", line 68, in load File "anki._backend_generated", line 1867, in get_card File "anki._backend", line 156, in _run_command anki.errors.NotFoundError: Your database appears to be in an inconsistent state. Please use the Check Database action
to reproduce it:
- do some reviews
- reach a certain card
- open browser
- find the card you were currently reviewing
- delete it using the Browser
- Close the browser
- you should see that your deleted card now looks faded out
- press “Show answer” (if you havent pressed it already), and then try to rate it as “Good” >> error.