# Error when attempting to study custom deck

**URL:** <https://forums.ankiweb.net/t/error-when-attempting-to-study-custom-deck/559>\
**Category:** Help\
**Created:** [June 27, 2020, 7:12pm UTC](https://forums.ankiweb.net/t/error-when-attempting-to-study-custom-deck/559 "2020-06-27T19:12:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashcardnublet](https://avatars.discourse-cdn.com/v4/letter/f/dec6dc/32.png) [@flashcardnublet](https://forums.ankiweb.net/u/flashcardnublet)\
**Post date:** [June 27, 2020, 7:12pm UTC](https://forums.ankiweb.net/t/error-when-attempting-to-study-custom-deck/559/1 "2020-06-27T19:12:05Z")

</div>

Hi all,

I hope everyone’s staying safe and healthy 🙂

Recently, I’ve noticed that I am unable to use Custom Decks properly. Here is what happens:

1. I add cards into the custom deck
2. press ‘show answer’
3. immediately encounter the error below
4. closing the error window and pressing ‘show answer’ brings the error back up

Error message: Error

> An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.  
> If the issue only occurs when add-ons are enabled, please use the Tools \> Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.  
> When you’ve discovered the add-on that is causing the problem, please report the issue on the add-on support site.  
> Debug info:  
> Anki 2.1.22 (0ecc189a) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1  
> Platform: Windows 10  
> Flags: frz=True ao=True sv=1  
> Add-ons, last update check: 2020-06-27 10:17:37  
> Caught exception:  
> Traceback (most recent call last):  
> File “aqt\webview.py”, line 446, in handler  
> File “aqt\reviewer.py”, line 542, in \_onTypedAnswer  
> File “\<C:\Program Files\Anki\decorator.pyc:decorator-gen-8\>”, line 2, in \_showAnswer  
> File “lib\site-packages\anki\hooks.py”, line 666, in decorator\_wrapper  
> File “lib\site-packages\anki\hooks.py”, line 663, in repl  
> File “C:\Users\Clayton\AppData\Roaming\Anki2\addons21\1374772155\main.py”, line 233, in onShowAnswer  
> return \_old(self)  
> File “aqt\reviewer.py”, line 245, in \_showAnswer  
> File “aqt\reviewer.py”, line 600, in \_showEaseButtons  
> File “aqt\reviewer.py”, line 636, in \_answerButtons  
> File “aqt\reviewer.py”, line 620, in \_defaultEase  
> File “lib\site-packages\anki\sched.py”, line 107, in answerButtons  
> File “lib\site-packages\anki\sched.py”, line 376, in \_lrnConf  
> File “lib\site-packages\anki\sched.py”, line 827, in \_newConf  
> KeyError: ‘delays’

As instructed in the error message, I tried again with all add-ons disabled. Using the same steps, I encountered the following error:

> # Error
> 
> An error occurred. Please use Tools \> Check Database to see if that fixes the problem.
> 
> If problems persist, please report the problem on our [support site](https://help.ankiweb.net). Please copy and paste the information below into your report.
> 
> Anki 2.1.22 (0ecc189a) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1  
> Platform: Windows 10  
> Flags: frz=True ao=False sv=1  
> Add-ons, last update check: 2020-06-27 10:17:37
> 
> Caught exception:  
> Traceback (most recent call last):  
> File “aqt\webview.py”, line 446, in handler  
> File “aqt\reviewer.py”, line 542, in \_onTypedAnswer  
> File “aqt\reviewer.py”, line 245, in \_showAnswer  
> File “aqt\reviewer.py”, line 600, in \_showEaseButtons  
> File “aqt\reviewer.py”, line 636, in \_answerButtons  
> File “aqt\reviewer.py”, line 620, in \_defaultEase  
> File “lib\site-packages\anki\sched.py”, line 107, in answerButtons  
> File “lib\site-packages\anki\sched.py”, line 376, in \_lrnConf  
> File “lib\site-packages\anki\sched.py”, line 827, in \_newConf  
> KeyError: ‘delays’

I did Tools \> Check Database, which did not solve the problem.

This occurs with all card types.

I appreciate any help. Thanks!

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [June 29, 2020, 6:26am UTC](https://forums.ankiweb.net/t/error-when-attempting-to-study-custom-deck/559/2 "2020-06-29T06:26:49Z")

</div>

Please delete all custom study/filtered decks you have, and then make sure your AnkiDroid is up to date to prevent this from happening in the future.

---

<div class="post-metadata">

**Author:** ![flashcardnublet](https://avatars.discourse-cdn.com/v4/letter/f/dec6dc/32.png) [@flashcardnublet](https://forums.ankiweb.net/u/flashcardnublet)\
**Post date:** [June 29, 2020, 11:38pm UTC](https://forums.ankiweb.net/t/error-when-attempting-to-study-custom-deck/559/3 "2020-06-29T23:38:02Z")

</div>

Hi, thanks for looking into the issue for me.

I’m on version 2.1.22 which the Anki website lists as “a recent stable release”, with newer versions potentially not supporting certain add-ons. Do I need to be on a more recent version?

Thanks.

---

<div class="post-metadata">

**Author:** ![addons\_zz](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/addons_zz/32/43_2.png) [@addons\_zz](https://forums.ankiweb.net/u/addons_zz)\
**Post date:** [June 30, 2020, 2:04am UTC](https://forums.ankiweb.net/t/error-when-attempting-to-study-custom-deck/559/4 "2020-06-30T02:04:41Z")

</div>

He told you to make sure AnkiDroid is up to date, not Anki (for desktop). As far as I know, AnkiDroid does not have addons.

---

<div class="post-metadata">

**Author:** ![flashcardnublet](https://avatars.discourse-cdn.com/v4/letter/f/dec6dc/32.png) [@flashcardnublet](https://forums.ankiweb.net/u/flashcardnublet)\
**Post date:** [June 30, 2020, 2:55am UTC](https://forums.ankiweb.net/t/error-when-attempting-to-study-custom-deck/559/5 "2020-06-30T02:55:48Z")

</div>

My mistake, I misread that.

To be clear, I am having this issue in the windows desktop Anki client. I recently updated Ankidroid and my custom deck has been empty. Custom decks have always worked fine in Ankidroid. The error in the windows client persists. The error message does look slightly different, but I’m not sure if this is significant:

> # Error
> 
> An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
> 
> If the issue only occurs when add-ons are enabled, please use the Tools \> Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
> 
> When you’ve discovered the add-on that is causing the problem, please report the issue on the [add-on support site](https://help.ankiweb.net/discussions/add-ons/).
> 
> Debug info:
> 
> Anki 2.1.22 (0ecc189a) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
> 
> Platform: Windows 10
> 
> Flags: frz=True ao=True sv=1
> 
> Add-ons, last update check: 2020-06-29 19:05:02
> 
> Caught exception:
> 
> Traceback (most recent call last):
> 
> File “aqt\webview.py”, line 446, in handler
> 
> File “aqt\reviewer.py”, line 542, in \_onTypedAnswer
> 
> File “\<C:\Program Files\Anki\decorator.pyc:decorator-gen-8\>”, line 2, in \_showAnswer
> 
> File “lib\site-packages\anki\hooks.py”, line 666, in decorator\_wrapper
> 
> File “lib\site-packages\anki\hooks.py”, line 663, in repl
> 
> File “C:\Users\Clayton\AppData\Roaming\Anki2\addons21\1374772155\main.py”, line 240, in onShowAnswer
> 
> ret = \_old(self)
> 
> File “aqt\reviewer.py”, line 245, in \_showAnswer
> 
> File “aqt\reviewer.py”, line 600, in \_showEaseButtons
> 
> File “aqt\reviewer.py”, line 636, in \_answerButtons
> 
> File “aqt\reviewer.py”, line 620, in \_defaultEase
> 
> File “lib\site-packages\anki\sched.py”, line 107, in answerButtons
> 
> File “lib\site-packages\anki\sched.py”, line 374, in \_lrnConf
> 
> File “lib\site-packages\anki\sched.py”, line 847, in \_lapseConf
> 
> KeyError: ‘delays’

Thanks again.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [June 30, 2020, 10:56am UTC](https://forums.ankiweb.net/t/error-when-attempting-to-study-custom-deck/559/6 "2020-06-30T10:56:01Z")

</div>

> <https://github.com/ankidroid/Anki-Android/issues/6289>
>
> A bunch of users have been reporting an error like the following:
> https://anki.tenderapp.com/discussions/ankidesktop/41865-error
> ec7b035 appears to be the cause - 
>  
>  
> ...

---

<div class="post-metadata">

**Author:** ![flashcardnublet](https://avatars.discourse-cdn.com/v4/letter/f/dec6dc/32.png) [@flashcardnublet](https://forums.ankiweb.net/u/flashcardnublet)\
**Post date:** [July 3, 2020, 2:59pm UTC](https://forums.ankiweb.net/t/error-when-attempting-to-study-custom-deck/559/7 "2020-07-03T14:59:07Z")

</div>

Quick update: I erroneously thought emptying a custom deck was the same as deleting it. I actually deleted the empty custom deck that I had and the problem is solved. Thank you both very much for your wisdom

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 5:41am UTC](https://forums.ankiweb.net/t/error-when-attempting-to-study-custom-deck/559/8 "2023-05-01T05:41:44Z")

</div>


