Skip to content

Commit

Permalink
raise RunTimeError when package version is too low
Browse files Browse the repository at this point in the history
  • Loading branch information
mattijn committed Nov 1, 2023
1 parent 1ceaa0f commit 07ae53a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions altair/utils/_importers.py
Expand Up @@ -8,7 +8,7 @@ def import_vegafusion() -> ModuleType:
try:
version = importlib_version("vegafusion")
if Version(version) < Version(min_version):
raise ImportError(
raise RuntimeError(
f"The vegafusion package must be version {min_version} or greater. "
f"Found version {version}"
)
Expand All @@ -33,7 +33,7 @@ def import_vl_convert() -> ModuleType:
try:
version = importlib_version("vl-convert-python")
if Version(version) < Version(min_version):
raise ImportError(
raise RuntimeError(
f"The vl-convert-python package must be version {min_version} or greater. "
f"Found version {version}"
)
Expand All @@ -58,7 +58,7 @@ def import_pyarrow_interchange() -> ModuleType:
version = importlib_version("pyarrow")

if Version(version) < Version(min_version):
raise ImportError(
raise RuntimeError(
f"The pyarrow package must be version {min_version} or greater. "
f"Found version {version}"
)
Expand Down

0 comments on commit 07ae53a

Please sign in to comment.