Skip to content

Commit

Permalink
use getattr to get session_id in client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
the-praxs committed Apr 17, 2024
1 parent dd06ddf commit 7a83f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agentops/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def handle_exception(exc_type, exc_value, exc_traceback):

@property
def current_session_id(self):
return self._session.session_id
return getattr(self._session, 'session_id', None)

@property
def api_key(self):
Expand Down

0 comments on commit 7a83f6f

Please sign in to comment.