From bed4d2d968922429c10b6594112b47b0f25dccd4 Mon Sep 17 00:00:00 2001 From: Amit Kapadia Date: Wed, 12 Jun 2024 06:24:21 -0700 Subject: [PATCH] add missing raise (#191) --- xarray_schema/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray_schema/components.py b/xarray_schema/components.py index d212ddc..5aefb0e 100644 --- a/xarray_schema/components.py +++ b/xarray_schema/components.py @@ -345,7 +345,7 @@ def validate(self, attr: Any): ''' if self.type is not None: if not isinstance(attr, self.type): - SchemaError(f'attrs {attr} is not of type {self.type}') + raise SchemaError(f'attrs {attr} is not of type {self.type}') if self.value is not None: if self.value is not None and self.value != attr: