Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit aeda842

Browse files
committed
drop(mdl): workaround for long fixed python-jsonschema/jsonschema#164
1 parent fd0d959 commit aeda842

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

wltp/datamodel.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -918,15 +918,7 @@ def validate_model(
918918
return errors
919919
else:
920920
for error in errors:
921-
try:
922-
raise error
923-
except jsonschema.ValidationError as ex:
924-
## Attempt to workround BUG: https://github.com./Julian/jsonschema/issues/164
925-
#
926-
if isinstance(ex.instance, (NDFrame, ndarray)):
927-
ex.instance = "%s: %s" % (type(ex.instance), str(ex.instance))
928-
ex.instance = str(ex.instance)
929-
raise
921+
raise error
930922

931923

932924
def yield_load_curve_errors(mdl):

0 commit comments

Comments
 (0)