Skip to content

Commit c95c257

Browse files
fabiencastancbentejac
authored andcommitted
[core] attribute: more explicit message in case of error in the expression during deserialization
1 parent 6bbc93b commit c95c257

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
@@ -194,7 +194,12 @@ def _applyExpr(self):
194194
elif self.isInput and Attribute.isLinkExpression(v):
195195
# value is a link to another attribute
196196
link = v[1:-1]
197-
linkNodeName, linkAttrName = link.split('.')
197+
linkNodeName, linkAttrName = "", ""
198+
try:
199+
linkNodeName, linkAttrName = link.split('.')
200+
except ValueError as err:
201+
logging.warning('Retrieve Connected Attribute from Expression failed.')
202+
logging.warning(f'Expression: "{link}"\nError: "{err}".')
198203
try:
199204
node = g.node(linkNodeName)
200205
if not node:

0 commit comments

Comments
 (0)