Skip to content

Commit bdbd79a

Browse files
authored
Merge pull request #122 from gtmanfred/develop
fix reference if key is not in locals
2 parents d01ea8a + 3b57312 commit bdbd79a

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)