Loggin Fix

This commit is contained in:
Yusarina
2025-08-23 22:36:59 +01:00
parent da2bfeb2fc
commit e626bdc5c5
+3 -2
View File
@@ -122,8 +122,9 @@ class AvatarToolkit_OT_MergeArmature(bpy.types.Operator):
return {'FINISHED'}
except Exception as e:
logger.error(f"Error merging armatures: {str(e)}\n{traceback.format_exc()}")
self.report({'ERROR'}, f"Error merging armatures: {str(e)}")
errormessage: str = traceback.format_exc()
logger.error(f"Error merging armatures: {str(e)}\n{errormessage}")
self.report({'ERROR'}, f"Error merging armatures: {errormessage}")
# Try to restore original mode even on error
try: