Skip to content

Commit 7aeefdf

Browse files
jason-raitzawilfox
andauthored
Update tind_client/client.py
Co-authored-by: Anna Wilcox <AWilcox@Wilcox-Tech.com>
1 parent a30edc9 commit 7aeefdf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tind_client/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def __init__(
3131
api_url: str = "",
3232
default_storage_dir: str = "./tmp",
3333
) -> None:
34-
self.api_key = api_key
35-
self.api_url = api_url
34+
self.api_key = api_key or os.environ.get("TIND_API_KEY", "")
35+
self.api_url = api_url or os.environ.get("TIND_API_URL", "")
3636
self.default_storage_dir = default_storage_dir
3737

3838
def fetch_metadata(self, record: str) -> Record:

0 commit comments

Comments
 (0)