From 488777f2c0faa85680adabfe1c1e72d5aa242c23 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Mon, 2 Dec 2019 21:25:55 -0500 Subject: [PATCH] Hack for schema-sald not published with common-workflow-language/schema_salad#284 --- gxformat2/schema/v19_09.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gxformat2/schema/v19_09.py b/gxformat2/schema/v19_09.py index e2912b2..588c7bf 100644 --- a/gxformat2/schema/v19_09.py +++ b/gxformat2/schema/v19_09.py @@ -283,7 +283,11 @@ def load(self, doc, baseuri, loadingOptions, docRoot=None): else: r.append(lf) except ValidationException as e: - errors.append(e.with_sourceline(SourceLine(doc, i, str))) + errors.append(ValidationException( + str(e), + SourceLine(doc, i, str), + [e] + )) if errors: raise ValidationException("", None, errors) return r