Commit d26176e9 authored by Pierre Dittgen's avatar Pierre Dittgen

Fix crash on uploaded file validation

parent 6897550a
...@@ -391,7 +391,7 @@ def validate(schema_instance: SchemaInstance, source: ValidataResource): ...@@ -391,7 +391,7 @@ def validate(schema_instance: SchemaInstance, source: ValidataResource):
urlencode({ urlencode({
**schema_instance.request_parameters(), **schema_instance.request_parameters(),
"url": source.url, "url": source.url,
})) })) if source.type == 'url' else None
return render_template('validation_report.html', return render_template('validation_report.html',
badge_msg=badge_msg, badge_msg=badge_msg,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment