Skip to content

Commit 032f450

Browse files
committed
fix: don't create project upon client initialization
1 parent b454daa commit 032f450

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

parea/client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ def __attrs_post_init__(self):
7676
self._client.set_api_key(self.api_key)
7777
parea_logger.set_client(self._client)
7878

79-
if self.api_key:
80-
self._get_project_uuid(reraise_any_exception=False)
81-
else:
79+
if not self.api_key:
8280
logger.warning("No API key found. Parea client will not be able to send data to the Parea API.")
8381

8482
def _get_project_uuid(self, reraise_any_exception: bool = True) -> Optional[str]:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "poetry.core.masonry.api"
66
[tool.poetry]
77
name = "parea-ai"
88
packages = [{ include = "parea" }]
9-
version = "0.2.200"
9+
version = "0.2.201"
1010
description = "Parea python sdk"
1111
readme = "README.md"
1212
authors = ["joel-parea-ai <[email protected]>"]

0 commit comments

Comments
 (0)