diff --git a/core/dbt/deprecations.py b/core/dbt/deprecations.py index da8f1f79c25..39748e25950 100644 --- a/core/dbt/deprecations.py +++ b/core/dbt/deprecations.py @@ -19,9 +19,10 @@ def name(self) -> str: ) def track_deprecation_warn(self) -> None: - dbt.tracking.track_deprecation_warn({ - "deprecation_name": self.name - }) + if dbt.tracking.active_user is not None: + dbt.tracking.track_deprecation_warn({ + "deprecation_name": self.name + }) @property def description(self) -> str: