Error

I was using the AnKing-MCAT cloze formatting for my notes but I wanted to get rid of the pixorize and sketchy fields so I deleted those as well as the buttons in the css, then I tried to bulk suggest it to update on my deck which is shared on AnkiHub but I got this error

Error message (don't change this)
Anki 25.02.6 (6381f184)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-26.2-arm64-arm-64bit

Traceback (most recent call last):

  File "aqt.taskman", line 144, in _on_closures_pending

  File "aqt.taskman", line 88, in <lambda>

  File "aqt.taskman", line 108, in wrapped_done

  File "/Users/sabrinalow/Library/Application Support/Anki2/addons21/1322529746/gui/suggestion_dialog.py", line 296, in <lambda>
    on_done=lambda future: _on_suggest_notes_in_bulk_done(future, parent),

  File "/Users/sabrinalow/Library/Application Support/Anki2/addons21/1322529746/gui/suggestion_dialog.py", line 357, in _on_suggest_notes_in_bulk_done
    suggestions_result: BulkNoteSuggestionsResult = future.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "concurrent.futures.thread", line 58, in run

  File "/Users/sabrinalow/Library/Application Support/Anki2/addons21/1322529746/gui/suggestion_dialog.py", line 288, in <lambda>
    task=lambda: suggest_notes_in_bulk(

  File "/Users/sabrinalow/Library/Application Support/Anki2/addons21/1322529746/main/suggestions.py", line 157, in suggest_notes_in_bulk
    ) = _suggestions_for_notes(notes, ankihub_did, change_type, comment)

  File "/Users/sabrinalow/Library/Application Support/Anki2/addons21/1322529746/main/suggestions.py", line 269, in _suggestions_for_notes
    change_note_suggestion_or_none_by_anki_nid = {

  File "/Users/sabrinalow/Library/Application Support/Anki2/addons21/1322529746/main/suggestions.py", line 270, in <dictcomp>
    note.id: _change_note_suggestion(

  File "/Users/sabrinalow/Library/Application Support/Anki2/addons21/1322529746/main/suggestions.py", line 319, in _change_note_suggestion
    note_from_anki_db = to_note_data(note, include_empty_fields=True)

  File "/Users/sabrinalow/Library/Application Support/Anki2/addons21/1322529746/main/exporting.py", line 34, in to_note_data
    fields = _prepare_fields(note, include_empty=include_empty_fields)

  File "/Users/sabrinalow/Library/Application Support/Anki2/addons21/1322529746/main/exporting.py", line 67, in _prepare_fields
    value=_prepared_field_html(value),

  File "/Users/sabrinalow/Library/Application Support/Anki2/addons21/1322529746/main/exporting.py", line 77, in _prepared_field_html
    result = re.sub(r" ?data-editor-shrink=['\"]true['\"]", "", html)

  File "re", line 210, in sub

TypeError: expected string or bytes-like object

Sentry link (for developers)

We don’t support deleting note type fields yet.

Oh, are there any plans to change that?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.