Skip to content

Commit

Permalink
tc
Browse files Browse the repository at this point in the history
  • Loading branch information
clee2000 committed Sep 13, 2024
1 parent f107a75 commit 996e89a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/torchci/clickhouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def get_clickhouse_client() -> Any:
# I cannot figure out why this stuff isn't being handled automatically when
# it is fine for the lambda
if endpoint.startswith("https://"):
endpoint = endpoint[len("https://"):]
endpoint = endpoint[len("https://") :]
if endpoint.endswith(":8443"):
endpoint = endpoint[:-len(":8443")]
endpoint = endpoint[: -len(":8443")]
return clickhouse_connect.get_client(
host=endpoint,
user=os.environ["CLICKHOUSE_USERNAME"],
Expand Down

0 comments on commit 996e89a

Please sign in to comment.