Skip to content

Commit

Permalink
Avoid KeyError when upgrading the package from previous versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Sep 11, 2017
1 parent d87fc25 commit 7de4912
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Expand Up @@ -6,7 +6,8 @@ There's a frood who really knows where his towel is.
2.11b2 (unreleased)
^^^^^^^^^^^^^^^^^^^

- Nothing changed yet.
- Avoid ``KeyError`` when upgrading the package from previous versions.
[hvelarde]


2.11b1 (2017-09-08)
Expand Down
2 changes: 1 addition & 1 deletion sc/social/like/browser/viewlets.py
Expand Up @@ -71,7 +71,7 @@ class SocialMetadataViewlet(BaseLikeViewlet):

def update(self):
registry = getUtility(IRegistry)
self.settings = registry.forInterface(ISocialLikeSettings)
self.settings = registry.forInterface(ISocialLikeSettings, check=False)
self.helper = getMultiAdapter((self.context, self.request), name=u'sl_helper')
self.title = self.context.Title()
self.description = self.context.Description()
Expand Down

0 comments on commit 7de4912

Please sign in to comment.