From afd490ce33c2204d189b66f6f66918cc44fdd4dc Mon Sep 17 00:00:00 2001 From: aardschok Date: Thu, 3 Aug 2017 15:51:53 +0200 Subject: [PATCH] addes explicit bson error catching in assign_look --- colorbleed/maya/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",