# Anki produces error when adding cloze deletion card

**URL:** <https://forums.ankiweb.net/t/anki-produces-error-when-adding-cloze-deletion-card/9489>\
**Category:** Add-ons\
**Created:** [April 22, 2021, 2:10pm UTC](https://forums.ankiweb.net/t/anki-produces-error-when-adding-cloze-deletion-card/9489 "2021-04-22T14:10:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LAAR1976](https://avatars.discourse-cdn.com/v4/letter/l/51bf81/32.png) [@LAAR1976](https://forums.ankiweb.net/u/LAAR1976)\
**Post date:** [April 22, 2021, 2:10pm UTC](https://forums.ankiweb.net/t/anki-produces-error-when-adding-cloze-deletion-card/9489/1 "2021-04-22T14:10:42Z")

</div>

Hi there,

When I am adding a cloze deletion card, I’m getting the following error log:

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, repeat 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-ons section of our support site.  
Debug info:  
Anki 2.1.40 (cf446733) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2  
Platform: Windows 10  
Flags: frz=True ao=True sv=1  
Add-ons, last update check: 2021-04-22 16:01:49

Caught exception:  
Traceback (most recent call last):  
File “aqt\webview.py”, line 515, in handler  
File “aqt\editor.py”, line 509, in   
File “”, line 2, in \_addCards  
File “anki\hooks.py”, line 89, in decorator\_wrapper  
File “anki\hooks.py”, line 86, in repl  
File “C:\Users\luisa\AppData\Roaming\Anki2\addons21\cloze\_overlapper\editor.py”, line 301, in onAddCards  
ret, total = overlapper.add()  
File “C:\Users\luisa\AppData\Roaming\Anki2\addons21\cloze\_overlapper\overlapper.py”, line 117, in add  
self.updateNote(fields, full, setopts, custom)  
File “C:\Users\luisa\AppData\Roaming\Anki2\addons21\cloze\_overlapper\overlapper.py”, line 203, in updateNote  
note.flush()  
File “anki\notes.py”, line 67, in flush  
AssertionError

I have tried to find what’s causing the problem by deactivating the add-ons, but that doesn’t seem to work. Can anybody help me here?

Thanks for your help!

Regards,

Luis
