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