Skip to content

Commit

Permalink
Merge 95b85c6 into 598a86f
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Apr 9, 2019
2 parents 598a86f + 95b85c6 commit fd71b3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions news/428.feature
@@ -0,0 +1,2 @@
Gracefully handle missing registry records on an interface.
[gforcada]
2 changes: 1 addition & 1 deletion src/plone/api/portal.py
Expand Up @@ -297,7 +297,7 @@ def get_registry_record(name=None, interface=None, default=MISSING):
registry = getUtility(IRegistry)

if interface is not None:
records = registry.forInterface(interface)
records = registry.forInterface(interface, check=False)
_marker = object()
if getattr(records, name, _marker) != _marker:
return registry['{0}.{1}'.format(interface.__identifier__, name)]
Expand Down

0 comments on commit fd71b3a

Please sign in to comment.