Skip to content

Commit

Permalink
improve error message when agentops is already inited (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
siyangqiu committed Aug 2, 2024
1 parent 25c0248 commit 134c34f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agentops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def init(
check_agentops_update()

if Client().is_initialized:
return logger.warning("AgentOps has already been initialized")
return logger.warning(
"AgentOps has already been initialized. If you are trying to start a session, call agentops.start_session() instead."
)

if tags is not None:
logger.warning("The 'tags' parameter is deprecated. Use 'default_tags' instead")
Expand Down

0 comments on commit 134c34f

Please sign in to comment.