We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af36752 commit bed4d2dCopy full SHA for bed4d2d
xarray_schema/components.py
@@ -345,7 +345,7 @@ def validate(self, attr: Any):
345
'''
346
if self.type is not None:
347
if not isinstance(attr, self.type):
348
- SchemaError(f'attrs {attr} is not of type {self.type}')
+ raise SchemaError(f'attrs {attr} is not of type {self.type}')
349
350
if self.value is not None:
351
if self.value is not None and self.value != attr:
0 commit comments