Skip to content

Commit 98889c6

Browse files
committed
[core] attribute: more explicit message in case of error in the expression during deserialization
1 parent 554fa3f commit 98889c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

meshroom/core/attribute.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,12 @@ def _applyExpr(self):
195195
elif self.isInput and Attribute.isLinkExpression(v):
196196
# value is a link to another attribute
197197
link = v[1:-1]
198-
linkNodeName, linkAttrName = link.split('.')
198+
linkNodeName, linkAttrName = "", ""
199+
try:
200+
linkNodeName, linkAttrName = link.split('.')
201+
except ValueError as err:
202+
logging.warning('Retrieve Connected Attribute from Expression failed.')
203+
logging.warning(f'Expression: "{link}"\nError: "{err}".')
199204
try:
200205
node = g.node(linkNodeName)
201206
if not node:

0 commit comments

Comments
 (0)