Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
siyangqiu committed Jul 30, 2024
1 parent 5459802 commit f3912cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion agentops/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def handle_exception(exc_type, exc_value, exc_traceback):
sys.excepthook = handle_exception

def stop_instrumenting(self):
if self._llm_tracker:
if self._llm_tracker is not None:
self._llm_tracker.stop_instrumenting()

def add_pre_init_warning(self, message: str):
Expand Down
5 changes: 1 addition & 4 deletions agentops/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,11 @@ def __init__(
tags: Optional[List[str]] = None,
host_env: Optional[dict] = None,
):
if tags is None:
tags = []

self.end_timestamp = None
self.end_state: Optional[str] = None
self.session_id = session_id
self.init_timestamp = get_ISO_time()
self.tags: List[str] = tags
self.tags: List[str] = tags or []
self.video: Optional[str] = None
self.end_state_reason: Optional[str] = None
self.host_env = host_env
Expand Down

0 comments on commit f3912cc

Please sign in to comment.