Skip to content

Commit

Permalink
feat: add env var to disable connectivity checks
Browse files Browse the repository at this point in the history
If TACL_DISABLE_API_CONNECTION_CHECK is set, checks will be bypassed.
  • Loading branch information
haatveit committed Oct 12, 2023
1 parent 72478be commit 2ee6f9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tsdapiclient/tacl.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ def get_api_key(env: str, pnum: str) -> str:


def check_api_connection(env: str) -> None:
if os.getenv("TACL_DISABLE_API_CONNECTION_CHECK"):
return
if env == "dev":
return
if ENV_HTTPS_PROXY.casefold() in [s.casefold() for s in os.environ]:
Expand Down

0 comments on commit 2ee6f9b

Please sign in to comment.