Skip to content

Commit

Permalink
also accept None as possible context
Browse files Browse the repository at this point in the history
  • Loading branch information
mrijken committed Dec 2, 2013
1 parent 16e7933 commit 53fa882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyramid_layout/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def render_panel(self, name='', *args, **kw):
context, request and any additional parameters passed into the
`render_panel` call. In case a panel isn't found, `None` is returned.
"""
context = kw.get('context', None)
if context is not None:
if 'context' in kw:
context = kw.get('context')
del kw['context']
else:
context = self.context
Expand Down

0 comments on commit 53fa882

Please sign in to comment.