Skip to content

Commit

Permalink
add missing raise (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
kapadia authored Jun 12, 2024
1 parent af36752 commit bed4d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray_schema/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bed4d2d

Please sign in to comment.