Skip to content

Commit

Permalink
Change ImportError for correct exception
Browse files Browse the repository at this point in the history
Co-authored-by: Daniele Nerini <[email protected]>
  • Loading branch information
aitaten and dnerini authored Aug 2, 2024
1 parent 457289c commit eefd3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysteps/motion/correlation.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def correlation(
"""

if not NUMBA_IMPORTED:
raise ImportError(
raise MissingOptionalDependency(
"Numba is not installed. The correlation function cannot be loaded."
)

Expand Down

0 comments on commit eefd3c7

Please sign in to comment.