Skip to content

Commit

Permalink
Better code.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiarn committed Jan 31, 2023
1 parent d262e40 commit 4234bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ajenti-core/aj/gate/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, key, gateway_middleware=None, client_info=None, auth_info=Non
self.key = key
self.client_info = client_info or {}
self.data = {}
self.identity = kwargs['initial_identity'] if 'initial_identity' in kwargs.keys() else None
self.identity = kwargs.get('initial_identity', None)
self.auth_info = auth_info
self.touch()
self.active = True
Expand Down

0 comments on commit 4234bde

Please sign in to comment.