Skip to content

Commit

Permalink
Merge pull request #122 from gtmanfred/develop
Browse files Browse the repository at this point in the history
fix reference if key is not in locals
  • Loading branch information
gtmanfred authored Mar 2, 2018
2 parents d01ea8a + 3b57312 commit bdbd79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pepper/libpepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def login(self, username=None, password=None, eauth=None, **kwargs):
'username',
'password',
'eauth'
) if locals()[key] is not None
) if locals().get(key, None) is not None
)
)
self.auth = self._send_auth('/login', **kwargs).get('return', [{}])[0]
Expand Down

0 comments on commit bdbd79a

Please sign in to comment.