Ankihub request for new cards error

**Before the error happened, I was trying to send a request for a new card for ankihub. **

Error message (don't change this)
Anki 2.1.66 (70506aeb) Python 3.9.15 Qt 6.5.2 PyQt 6.5.2
Platform: Windows-10-10.0.22621
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-11-18 12:28:23

Traceback (most recent call last):

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

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

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

  File "aqt.operations", line 127, in wrapped_done

  File "aqt.addcards", line 295, in on_success

  File "_aqt.hooks", line 40, in __call__

  File "C:\Users\tester\AppData\Roaming\Anki2\addons21\1322529746\gui\", line 100, in on_did_add_note
    open_suggestion_dialog_for_note(note, parent=editor.widget)

  File "C:\Users\tester\AppData\Roaming\Anki2\addons21\1322529746\gui\", line 84, in open_suggestion_dialog_for_note
    ah_did = _determine_ah_did_for_nids_to_be_suggested([], parent)

  File "C:\Users\tester\AppData\Roaming\Anki2\addons21\1322529746\gui\", line 178, in _determine_ah_did_for_nids_to_be_suggested
    _debug_issue_with_determining_ah_did_for_nids(e, anki_nids)  # pragma: no cover

  File "C:\Users\tester\AppData\Roaming\Anki2\addons21\1322529746\gui\", line 220, in _debug_issue_with_determining_ah_did_for_nids
    raise e

  File "C:\Users\tester\AppData\Roaming\Anki2\addons21\1322529746\gui\", line 174, in _determine_ah_did_for_nids_to_be_suggested
    dids_that_all_notes_could_belong_to = set.intersection(

TypeError: descriptor 'intersection' for 'set' objects doesn't apply to a 'NoneType' object

Sentry link (for developers)

If you try syncing before suggesting the note, does the error still occur?

It appears the error is caused by suggesting a new note that uses a notetype not on your AnkiHub deck. When you create an AnkiHub deck, the add-on converts the notes to a new notetype that has a name like โ€œBasic (Deck Name / username)โ€. You should use this new notetype for suggested new notes instead of the โ€œBasicโ€ type. The add-on should only allow you to suggest notes using the new notetype anyway, but it seems thereโ€™s a bug here.

hat funktioniert vielen Dank!!! (:smile:

1 Like