Skip to content

Commit

Permalink
wrap _uri_to_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Jan 12, 2025
1 parent 381abe7 commit 37b93e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions trimesh/exchange/gltf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,8 +1256,12 @@ def _parse_textures(header, views, resolver=None):
if "bufferView" in img:
blob = views[img["bufferView"]]
elif "uri" in img:
# will get bytes from filesystem or base64 URI
blob = _uri_to_bytes(uri=img["uri"], resolver=resolver)
try:
# will get bytes from filesystem or base64 URI
blob = _uri_to_bytes(uri=img["uri"], resolver=resolver)
except BaseException:
log.debug(f"unable to load image from: {img.keys()}", exc_info=True)
continue
else:
log.debug(f"unable to load image from: {img.keys()}")
continue
Expand Down

0 comments on commit 37b93e9

Please sign in to comment.