From 04cf328edc946cb8648d75691011e0b36e0d5d65 Mon Sep 17 00:00:00 2001 From: anawas Date: Fri, 8 Nov 2024 07:34:49 +0100 Subject: [PATCH] Added exception to fail fast --- cdci_data_analysis/analysis/parameters.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cdci_data_analysis/analysis/parameters.py b/cdci_data_analysis/analysis/parameters.py index ad84535f..8968c52e 100644 --- a/cdci_data_analysis/analysis/parameters.py +++ b/cdci_data_analysis/analysis/parameters.py @@ -552,6 +552,7 @@ def from_owl_uri(cls, "but %s doesn't have such keyword, " "so it will be discarded for the instantiation"), owl_uri, par_kw, restr, python_subclass) + raise ValueError() for par_name, par_value in kwargs.items(): if var_kw_signature or par_name in call_signature.parameters: