diff --git a/fam/telemetry/posthog.py b/fam/telemetry/posthog.py index e4111ae..2eaa204 100644 --- a/fam/telemetry/posthog.py +++ b/fam/telemetry/posthog.py @@ -18,7 +18,7 @@ def __init__(self): project_api_key="phc_tk7IUlV7Q7lEa9LNbXxyC1sMWlCqiW6DkHyhJrbWMCS", host="https://eu.posthog.com" ) - if not os.getenv("ANONYMIZED_TELEMETRY", True) or "pytest" in sys.modules: + if not bool(os.getenv("ANONYMIZED_TELEMETRY", True)) or "pytest" in sys.modules: self._posthog.disabled = True logger.info("Anonymized telemetry disabled. See fam/telemetry/README.md for more information.") else: