diff --git a/openpype/hosts/maya/tools/mayalookassigner/arnold_standin.py b/openpype/hosts/maya/tools/mayalookassigner/arnold_standin.py index 64fab2fa27..7eeeb72553 100644 --- a/openpype/hosts/maya/tools/mayalookassigner/arnold_standin.py +++ b/openpype/hosts/maya/tools/mayalookassigner/arnold_standin.py @@ -74,6 +74,10 @@ def get_nodes_by_id(standin): json_path = os.path.join(os.path.dirname(path), f) break + if not json_path: + log.warning("Could not find json file for {}.".format(standin)) + return {} + with open(json_path, "r") as f: return json.load(f)