Skip to content

Commit acfb1ab

Browse files
fix: update ValidationWarning to extend UserWarning as suggested
1 parent 5126c65 commit acfb1ab

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/hdmf/validate/errors.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,9 @@ def __init__(self, **kwargs):
216216
super().__init__(name, reason, location=loc)
217217

218218

219-
class ValidationWarning(Error):
219+
class ValidationWarning(UserWarning):
220220
"""Base class for validation warnings."""
221-
@property
222-
def message(self):
223-
return self.reason
221+
pass
224222

225223
class ExtraFieldWarning(ValidationWarning):
226224
"""Warning for fields found in data but not defined in any applicable spec."""

0 commit comments

Comments
 (0)