Skip to content

Commit

Permalink
fix reference if key is not in locals
Browse files Browse the repository at this point in the history
  • Loading branch information
gtmanfred committed Mar 2, 2018
1 parent d01ea8a commit 3b57312
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 3b57312

Please sign in to comment.