TypeError when generating new notes
Closed this issue · 0 comments
eternal-flame-AD commented
I got the following error while using the generating new notes feature:
Caught exception:
Traceback (most recent call last):
File "...\Roaming\Anki2\addons21\1964372878\kanji_colorizer.py", line 187, in generate_for_new
' or '.join(('mid:'+mid for mid in model_ids)), srcField, dstField)
File "...\Roaming\Anki2\addons21\1964372878\kanji_colorizer.py", line 187, in <genexpr>
' or '.join(('mid:'+mid for mid in model_ids)), srcField, dstField)
TypeError: can only concatenate str (not "int") to str
Looks like mid is of int type and cannot be directly concatenated. Adding a str() conversion fixes this problem.
I am using the package Windows Anki version 2.1.29