Merge "Add explicit return to _get_property_value()"

This commit is contained in:
Jenkins 2015-06-10 18:53:15 +00:00 committed by Gerrit Code Review
commit a6f3be34bc
1 changed files with 2 additions and 0 deletions

View File

@ -451,6 +451,8 @@ class Properties(collections.Mapping):
return prop.get_value(None, validate)
elif prop.required():
raise ValueError(_('Property %s not assigned') % key)
else:
return None
def __getitem__(self, key):
return self._get_property_value(key)