mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-23 19:47:39 +02:00
[common] DictModel get does not raise errors as in Python
getr raises an error if the key does not exist
This commit is contained in:
parent
09525a364e
commit
c986b4a134
4 changed files with 42 additions and 25 deletions
|
@ -608,7 +608,7 @@ class BaseNode(BaseObject):
|
|||
assert isinstance(att, ListAttribute)
|
||||
att = att.value.at(int(idx))
|
||||
else:
|
||||
att = self._attributes.get(name)
|
||||
att = self._attributes.getr(name)
|
||||
return att
|
||||
|
||||
@Slot(str, result=Attribute)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue