Commit 2f777b6e authored by Pierre Dittgen's avatar Pierre Dittgen

Don't ignore value errors anymore if structure errors are present

parent 82af11c6
......@@ -121,10 +121,6 @@ def amend_report(report):
# Tag 'structure' or 'value'
errors = [{**err, 'tag': categorize_err(err)} for err in report['tables'][0]['errors']]
# Remove 'value' errors if 'structure' errors other than 'invalid-column-delimiter'
if any([err['tag'] == 'structure' and err['code'] != 'invalid-column-delimiter' for err in errors]):
errors = [err for err in errors if err['tag'] != 'value']
# Among value errors, only keep a single error by error cell
# => the 1st encountered one
filtered_errors = []
......
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