Error message when trying to change note type (2.1.45a2)

After selecting two or more cards from different notes, and then Notes > Change note type…

You’ll get the “Please select cards from only one note type” as expected:
capt. pantalla2

However, after clicking OK, you’ll get an error message:

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.45 (b9a4908b) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-05-21 20:56:42

Caught exception:
Traceback (most recent call last):
File "aqt\[progress.py](http://progress.py/)", line 54, in handler
File "aqt\[utils.py](http://utils.py/)", line 998, in <lambda>
File "aqt\browser\[browser.py](http://browser.py/)", line 529, in onChangeModel
File "aqt\browser\[change_notetype.py](http://change_notetype.py/)", line 39, in __init__
File "aqt\browser\[change_notetype.py](http://change_notetype.py/)", line 67, in setup
IndexError: list index out of range

I’ve deactivated all my addons anc checked the database, but the error message persist.
2.1.44 works as expected.

2 Likes

I’ve pushed a fix. :+1:

3 Likes

Thanks, you guys are doing an incredible job!

1 Like