fix more error logging errors

This commit is contained in:
989onan
2025-05-11 12:14:47 -04:00
parent 9a84cf52b5
commit 316b125fa8
15 changed files with 38 additions and 24 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
import traceback
import bpy
from bpy.types import Operator, Context
from ...core.translations import t
@@ -33,7 +34,7 @@ class AvatarToolKit_OT_SeparateByMaterials(Operator):
self.report({'INFO'}, t("Tools.separate_materials_success"))
return {'FINISHED'}
except Exception as e:
self.report({'ERROR'}, str(e))
self.report({'ERROR'}, traceback.format_exc())
return {'CANCELLED'}
class AvatarToolKit_OT_SeparateByLooseParts(Operator):
@@ -65,5 +66,5 @@ class AvatarToolKit_OT_SeparateByLooseParts(Operator):
self.report({'INFO'}, t("Tools.separate_loose_success"))
return {'FINISHED'}
except Exception as e:
self.report({'ERROR'}, str(e))
self.report({'ERROR'}, traceback.format_exc())
return {'CANCELLED'}