# Error when using any feature in image occulsion (except shapes))

**URL:** <https://forums.ankiweb.net/t/error-when-using-any-feature-in-image-occulsion-except-shapes/3836>\
**Category:** Add-ons\
**Created:** [September 29, 2020, 10:15am UTC](https://forums.ankiweb.net/t/error-when-using-any-feature-in-image-occulsion-except-shapes/3836 "2020-09-29T10:15:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alissa](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Alissa](https://forums.ankiweb.net/u/Alissa)\
**Post date:** [September 29, 2020, 10:15am UTC](https://forums.ankiweb.net/t/error-when-using-any-feature-in-image-occulsion-except-shapes/3836/1 "2020-09-29T10:15:59Z")

</div>

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.33 (3f403040) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2  
Platform: Mac 10.14.6  
Flags: frz=True ao=True sv=1  
Add-ons, last update check: 2020-09-28 06:43:34  
Add-ons possibly involved: ⁨Image Occlusion Enhanced for Anki 21 alpha⁩

Caught exception:  
Traceback (most recent call last):  
File “aqt/webview.py”, line 493, in handler  
File “/Users/AlissaSonia/Library/Application Support/Anki2/addons21/1374772155/add.py”, line 278, in   
lambda val, choice=choice, close=close: self.\_onAddNotesButton(choice, close, val))  
File “/Users/AlissaSonia/Library/Application Support/Anki2/addons21/1374772155/add.py”, line 293, in \_onAddNotesButton  
r = gen.generateNotes()  
File “/Users/AlissaSonia/Library/Application Support/Anki2/addons21/1374772155/ngen.py”, line 80, in generateNotes  
(svg\_node, layer\_node) = self.\_getMnodesAndSetIds()  
File “/Users/AlissaSonia/Library/Application Support/Anki2/addons21/1374772155/ngen.py”, line 190, in \_getMnodesAndSetIds  
mask\_doc = minidom.parseString(self.new\_svg.encode(‘utf-8’))  
AttributeError: ‘NoneType’ object has no attribute ‘encode’
