List index out of range when updating note type of cloze deletion notes in Browse

Hello everyone,

First of all: Happy Easter!

Just a quick report on a non-critical issue I have recently experienced.

I’m using git commit 1cc63f9267eb3facc514fab827d4146aaf14d3bb
where I get following error when I try to update the note type of a cloze deletion note.

Traceback (most recent call last):
  File "/home/tobias/.cache/bazel/_bazel_t2b3/c3a231dd5ff777f95585ff8ed09db3a1/execroot/net_ankiweb_anki/bazel-out/k8-fastbuild/bin/qt/runanki.runfiles/net_ankiweb_anki/qt/aqt/browser.py", line 1189, in accept
    fmap = self.getFieldMap()
  File "/home/tobias/.cache/bazel/_bazel_t2b3/c3a231dd5ff777f95585ff8ed09db3a1/execroot/net_ankiweb_anki/bazel-out/k8-fastbuild/bin/qt/runanki.runfiles/net_ankiweb_anki/qt/aqt/browser.py", line 1173, in getFieldMap
    return self.getTemplateMap(
  File "/home/tobias/.cache/bazel/_bazel_t2b3/c3a231dd5ff777f95585ff8ed09db3a1/execroot/net_ankiweb_anki/bazel-out/k8-fastbuild/bin/qt/runanki.runfiles/net_ankiweb_anki/qt/aqt/browser.py", line 1163, in getTemplateMap
    idx = combos[i].currentIndex()
IndexError: list index out of range

Regards,
Tobias

Thanks Tobias, I’ll look into it

Rumo’s pushed a fix for this today

Hello Damien, thanks for letting me know and thanks to Rumo for the fix!