mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-15 15:55:18 +02:00
[core] avoid error during project load
This commit is contained in:
parent
165ba412e4
commit
c02267b4ce
1 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,7 @@ import copy
|
||||||
import re
|
import re
|
||||||
import weakref
|
import weakref
|
||||||
import types
|
import types
|
||||||
|
import logging
|
||||||
|
|
||||||
from meshroom.common import BaseObject, Property, Variant, Signal, ListModel, DictModel, Slot
|
from meshroom.common import BaseObject, Property, Variant, Signal, ListModel, DictModel, Slot
|
||||||
from meshroom.core import desc, pyCompatibility, hashValue
|
from meshroom.core import desc, pyCompatibility, hashValue
|
||||||
|
@ -190,7 +191,10 @@ class Attribute(BaseObject):
|
||||||
# value is a link to another attribute
|
# value is a link to another attribute
|
||||||
link = v[1:-1]
|
link = v[1:-1]
|
||||||
linkNode, linkAttr = link.split('.')
|
linkNode, linkAttr = link.split('.')
|
||||||
|
try:
|
||||||
g.addEdge(g.node(linkNode).attribute(linkAttr), self)
|
g.addEdge(g.node(linkNode).attribute(linkAttr), self)
|
||||||
|
except KeyError as err:
|
||||||
|
logging.warning('Connect Attribute from Expression failed.\nExpression: "{exp}"\nError: "{err}".'.format(exp=v, err=err))
|
||||||
self.resetValue()
|
self.resetValue()
|
||||||
|
|
||||||
def getExportValue(self):
|
def getExportValue(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue