Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
fix: catch correct exception
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 committed Jul 17, 2023
1 parent 43923f0 commit 47e66df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def dbt_installed_version():
"""Returns: dbt version"""
try:
return pkg_resources.get_distribution("dbt-core").version
except ImportError:
except pkg_resources.DistributionNotFound:
return


Expand All @@ -121,7 +121,7 @@ def fal_installed_version():
"""Returns: fal version"""
try:
return pkg_resources.get_distribution("dbt-fal").version
except ImportError:
except pkg_resources.DistributionNotFound:
return


Expand Down
4 changes: 2 additions & 2 deletions projects/adapter/src/fal/dbt/telemetry/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def dbt_installed_version():
"""Returns: dbt version"""
try:
return pkg_resources.get_distribution("dbt-core").version
except ImportError:
except pkg_resources.DistributionNotFound:
return


Expand All @@ -128,7 +128,7 @@ def fal_installed_version():
"""Returns: fal version"""
try:
return pkg_resources.get_distribution("dbt-fal").version
except ImportError:
except pkg_resources.DistributionNotFound:
return


Expand Down

0 comments on commit 47e66df

Please sign in to comment.