Skip to content

Commit

Permalink
imports
Browse files Browse the repository at this point in the history
  • Loading branch information
siyangqiu committed Aug 13, 2024
1 parent 4202f25 commit 620388d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions agentops/time_travel.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from .http_client import HttpClient
from .exceptions import ApiServerException
from .helpers import singleton
from os import environ


@singleton
Expand Down Expand Up @@ -32,7 +31,7 @@ def __init__(self):

def fetch_time_travel_id(ttd_id):
try:
endpoint = environ.get("AGENTOPS_API_ENDPOINT", "https://api.agentops.ai")
endpoint = os.environ.get("AGENTOPS_API_ENDPOINT", "https://api.agentops.ai")

Check warning on line 34 in agentops/time_travel.py

View check run for this annotation

Codecov / codecov/patch

agentops/time_travel.py#L34

Added line #L34 was not covered by tests
ttd_res = HttpClient.get(f"{endpoint}/v2/ttd/{ttd_id}")
if ttd_res.code != 200:
raise Exception(f"Failed to fetch TTD with status code {ttd_res.code}")

Check warning on line 37 in agentops/time_travel.py

View check run for this annotation

Codecov / codecov/patch

agentops/time_travel.py#L37

Added line #L37 was not covered by tests
Expand Down

0 comments on commit 620388d

Please sign in to comment.