Skip to content

Commit

Permalink
misc: Inherit from ValueError for back compat
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Dec 17, 2024
1 parent 89c26a1 commit 0b7e2ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CompilationError(DevitoError):
"""


class InvalidArgument(DevitoError):
class InvalidArgument(ValueError, DevitoError):
"""
Raised by the runtime system when an `op.apply(...)` argument, either a
default argument or a user-provided one ("override"), is not valid.
Expand Down

0 comments on commit 0b7e2ef

Please sign in to comment.