Improving module importing and exception handling

This commit is contained in:
ElgoogUdiab 2025-03-25 15:50:31 +08:00
parent 744681e42e
commit a8509dcf50
2 changed files with 2 additions and 3 deletions

View File

@ -1467,8 +1467,8 @@ class BlenderMCPServer:
if mesh_obj.data.name is not None: if mesh_obj.data.name is not None:
mesh_obj.data.name = mesh_name mesh_obj.data.name = mesh_name
print(f"Mesh renamed to: {mesh_name}") print(f"Mesh renamed to: {mesh_name}")
except: except Exception as e:
pass print("Having issue with renaming, give up renaming.")
return mesh_obj return mesh_obj

View File

@ -11,7 +11,6 @@ import os
from pathlib import Path from pathlib import Path
import base64 import base64
from urllib.parse import urlparse from urllib.parse import urlparse
import math
# Configure logging # Configure logging
logging.basicConfig(level=logging.INFO, logging.basicConfig(level=logging.INFO,