ospalh / anki-addons

A collection of Anki 2.1 addons in different states of bugginess, up-to-dateness and usefulness.
http://ospalh.github.io/anki-addons/
135 stars 60 forks source link

'NoneType' object has no attribute '__getitem__' #81

Closed dayjaby closed 8 years ago

dayjaby commented 8 years ago

Right after installing the plugin I clicked on "Type C" in the window where to add new cards. I got the following error:

Traceback (most recent call last):
  File "C:\Users\David Jablonski\Documents\Anki\addons\Quick_note_and_deck_buttons.py", line 111, in <lambda>
    l = lambda s=chooser, nn=button_item["name"]: do_function(s, nn)
  File "C:\Users\David Jablonski\Documents\Anki\addons\Quick_note_and_deck_buttons.py", line 130, in change_model_to
    chooser.deck.conf['curModel'] = m['id']
TypeError: 'NoneType' object has no attribute '__getitem__'
dayjaby commented 8 years ago

Ah, it seems to be necessary to configure this plugin first. Ignore it!