Commit e993241b authored by Jibril Mammeri's avatar Jibril Mammeri
Browse files

#2045 Overwrite ConfigNode.get method to report any exception happening in __getitem__

parent b5e9b537
Pipeline #33788 passed with stages
in 140 minutes and 33 seconds
......@@ -280,6 +280,12 @@ class ConfigNode(MutableMapping):
def raw_items(self):
return self._data.items()
def get(self, key, default=None):
if key in self._data:
return self[key]
else:
return default
def encode(self):
return self._data
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment