Fix error when removing preview collection

pull/5/head
Clément Ducarteron 2023-03-24 11:04:47 +01:00
parent fcb26f6feb
commit 8bf47ba3de
1 changed files with 6 additions and 1 deletions

View File

@ -50,7 +50,12 @@ def register():
def unregister():
bpy.utils.previews.remove(ASSET_PREVIEWS)
try:
bpy.utils.previews.remove(ASSET_PREVIEWS)
except Exception as e:
pass
# print(f"!-- {e} --!")
# print(f"No preview collection found. {ASSET_PREVIEWS} can't be remove.")
if bpy.app.background:
return