From f733ca68625b6468b57a282a31c29415f3de7c76 Mon Sep 17 00:00:00 2001 From: aviau Date: Tue, 18 Feb 2025 09:50:09 -0800 Subject: [PATCH] api_client: empty tenant_id is fine --- flareio/api_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flareio/api_client.py b/flareio/api_client.py index 674f392..81d607f 100644 --- a/flareio/api_client.py +++ b/flareio/api_client.py @@ -40,7 +40,7 @@ def from_env(cls) -> "FlareApiClient": tenant_id: t.Optional[str] = os.environ.get("FLARE_TENANT_ID") return cls( api_key=api_key, - tenant_id=int(tenant_id) if tenant_id is not None else None, + tenant_id=int(tenant_id) if tenant_id else None, ) @staticmethod