Skip to content

Commit 3b57312

Browse files
committed
fix reference if key is not in locals
1 parent d01ea8a commit 3b57312

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pepper/libpepper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def login(self, username=None, password=None, eauth=None, **kwargs):
453453
'username',
454454
'password',
455455
'eauth'
456-
) if locals()[key] is not None
456+
) if locals().get(key, None) is not None
457457
)
458458
)
459459
self.auth = self._send_auth('/login', **kwargs).get('return', [{}])[0]

0 commit comments

Comments
 (0)