Skip to content

Commit

Permalink
catch correct error
Browse files Browse the repository at this point in the history
  • Loading branch information
btovar committed Feb 10, 2025
1 parent e91da4a commit 0068f4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class DaskVineWarning(UserWarning):

from .dask_executor import DaskVine
from .dask_dag import DaskVineDag
except ImportError:
except (ImportError, ModuleNotFoundError):
warnings.warn("Dask >= 2024.12.0 not available, using DaskVine legacy task graph representation.", DaskVineWarning)

from .compat import DaskVine
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

if vd >= vr:
warnings.warn("ndcctools.taskvine.compat only works with dask version < 2024.12.0")
except ImportError:
except (ImportError, ModuleNotFoundError):
pass


Expand Down

0 comments on commit 0068f4e

Please sign in to comment.