We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ff14b9 commit cf699bbCopy full SHA for cf699bb
flareio/api_client.py
@@ -36,7 +36,9 @@ def __init__(
36
def from_env(cls) -> "FlareApiClient":
37
api_key: t.Optional[str] = os.environ.get("FLARE_API_KEY")
38
if not api_key:
39
- raise Exception("Please set the FLARE_API_KEY environment variable")
+ raise Exception(
40
+ "Please set the FLARE_API_KEY environment variable. Otherwise, initiate the client using FlareApiClient(api_key=...)."
41
+ )
42
tenant_id: t.Optional[str] = os.environ.get("FLARE_TENANT_ID")
43
return cls(
44
api_key=api_key,
0 commit comments