Commit f6558b1e authored by Pierre Dittgen's avatar Pierre Dittgen

Fix error when headers are not found

parent 0d318c3d
......@@ -145,7 +145,7 @@ def create_validata_report(goodtables_report):
report['table']['row_count'] = report['table']['row-count']
# Shortcut
report['table']['col_count'] = len(report['table']['headers'])
report['table']['col_count'] = len(report['table'].get('headers', []))
# Add context to errors
errors = contextualize(report['table']['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