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
+2 -1
View File
@@ -1,3 +1,4 @@
import traceback
import bpy
import re
from typing import Set, Dict, List, Optional, Tuple
@@ -143,7 +144,7 @@ class AvatarToolkit_OT_CombineMaterials(Operator):
except Exception as e:
logger.error(f"Failed to combine materials:", exception=e)
self.report({'ERROR'}, t("Optimization.error.combine_materials", error=str(e)))
self.report({'ERROR'}, t("Optimization.error.combine_materials", error=traceback.format_exc()))
return {'CANCELLED'}
def consolidate_materials(self, meshes: List[Object]) -> int:
+3 -2
View File
@@ -1,3 +1,4 @@
import traceback
import bpy
from typing import Set, List, Tuple, ClassVar
from bpy.types import Operator, Context, Object
@@ -53,7 +54,7 @@ class AvatarToolkit_OT_JoinAllMeshes(Operator):
except Exception as e:
logger.error(f"Failed to join meshes:", exception=e)
self.report({'ERROR'}, t("Optimization.error.join_meshes", error=str(e)))
self.report({'ERROR'}, t("Optimization.error.join_meshes", error=traceback.format_exc()))
return {'CANCELLED'}
class AvatarToolkit_OT_JoinSelectedMeshes(Operator):
@@ -97,5 +98,5 @@ class AvatarToolkit_OT_JoinSelectedMeshes(Operator):
except Exception as e:
logger.error(f"Failed to join selected meshes:", exception=e)
self.report({'ERROR'}, t("Optimization.error.join_selected", error=str(e)))
self.report({'ERROR'}, t("Optimization.error.join_selected", error=traceback.format_exc()))
return {'CANCELLED'}