Skip to content

Commit

Permalink
its ok to hit a deprecation with tracking disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Beck committed Aug 21, 2020
1 parent b6a9519 commit 685873a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/dbt/deprecations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 685873a

Please sign in to comment.