mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Calrify why we don't raise Attribute error here
Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
This commit is contained in:
co-authored by
Nicola Soranzo
parent
8af54811c5
commit
1b98e2ca12
@@ -113,6 +113,7 @@ class MetadataCollection(Mapping):
|
||||
return self.spec[name].wrap(self.spec[name].default, object_session(self.parent))
|
||||
if name in self.parent._metadata:
|
||||
return self.parent._metadata[name]
|
||||
# Instead of raising an AttributeError for non-existing metadata, we return None
|
||||
return None
|
||||
|
||||
def __setattr__(self, name, value):
|
||||
|
||||
Reference in New Issue
Block a user