Skip to content

Commit bed4d2d

Browse files
authored
add missing raise (#191)
1 parent af36752 commit bed4d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray_schema/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def validate(self, attr: Any):
345345
'''
346346
if self.type is not None:
347347
if not isinstance(attr, self.type):
348-
SchemaError(f'attrs {attr} is not of type {self.type}')
348+
raise SchemaError(f'attrs {attr} is not of type {self.type}')
349349

350350
if self.value is not None:
351351
if self.value is not None and self.value != attr:

0 commit comments

Comments
 (0)