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:
|
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
|
||||||
|
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user