Improving module importing and exception handling
This commit is contained in:
parent
744681e42e
commit
a8509dcf50
4
addon.py
4
addon.py
@ -1467,8 +1467,8 @@ class BlenderMCPServer:
|
||||
if mesh_obj.data.name is not None:
|
||||
mesh_obj.data.name = mesh_name
|
||||
print(f"Mesh renamed to: {mesh_name}")
|
||||
except:
|
||||
pass
|
||||
except Exception as e:
|
||||
print("Having issue with renaming, give up renaming.")
|
||||
|
||||
return mesh_obj
|
||||
|
||||
|
||||
@ -11,7 +11,6 @@ import os
|
||||
from pathlib import Path
|
||||
import base64
|
||||
from urllib.parse import urlparse
|
||||
import math
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(level=logging.INFO,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user