From 0b7e2ef187b28cfee9bbba9c1d78456124c8669d Mon Sep 17 00:00:00 2001 From: Fabio Luporini Date: Tue, 17 Dec 2024 09:37:02 +0000 Subject: [PATCH] misc: Inherit from ValueError for back compat --- devito/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devito/exceptions.py b/devito/exceptions.py index 2c93d457cf..b15c5fd32f 100644 --- a/devito/exceptions.py +++ b/devito/exceptions.py @@ -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.