My anki closed unexpectedly with the following error, after trying to do a backup then trying to download an updated Anking deck

Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=False sv=?
Add-ons, last update check: 2022-06-09 20:06:50

Caught exception:
Traceback (most recent call last):
File “aqt/”, line 54, in handler
File “aqt/”, line 1277, in onRefreshTimer
File “aqt/”, line 74, in refresh
File “aqt/”, line 142, in _renderPage
File “anki/scheduler/”, line 52, in deck_due_tree
File “anki/_backend/”, line 185, in deck_tree
File “anki/_backend/”, line 126, in _run_command
pyo3_runtime.PanicException: called Result::unwrap() on an Err value: PoisonError { … }

Please follow the steps on When problems occur - Frequently Asked Questions