Skip to content

Commit 0fda304

Browse files
committed
recast to ValidationException
1 parent 802969a commit 0fda304

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cwltool/process.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,13 +482,12 @@ def __init__(self, toolpath_object, **kwargs):
482482
elif key == "outputs":
483483
self.outputs_record_schema["fields"].append(c)
484484

485-
with SourceLine(toolpath_object, "inputs",
486-
avro.schema.SchemaParseException):
485+
with SourceLine(toolpath_object, "inputs", validate.ValidationException):
487486
self.inputs_record_schema = cast(
488487
Dict[six.text_type, Any], schema_salad.schema.make_valid_avro(
489488
self.inputs_record_schema, {}, set()))
490489
AvroSchemaFromJSONData(self.inputs_record_schema, self.names)
491-
with SourceLine(toolpath_object, "outputs", avro.schema.SchemaParseException):
490+
with SourceLine(toolpath_object, "outputs", validate.ValidationException):
492491
self.outputs_record_schema = cast(Dict[six.text_type, Any],
493492
schema_salad.schema.make_valid_avro(
494493
self.outputs_record_schema, {}, set()))

0 commit comments

Comments
 (0)