diff --git a/colorbleed/maya/lib.py b/colorbleed/maya/lib.py index 7f6a21a66e..547335cf6a 100644 --- a/colorbleed/maya/lib.py +++ b/colorbleed/maya/lib.py @@ -775,7 +775,7 @@ def assign_look(nodes, subset="lookDefault"): # create objectId for database try: asset_id = bson.ObjectId(asset_id) - except Exception: + except bson.errors.InvalidId: log.warning("Asset ID is not compatible with bson") continue subset_data = io.find_one({"type": "subset",