1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2024-11-22 05:45:02 +01:00

csv_metadata_quality/check.py: Return date even if it is invalid

Otherwise it is missing from the final CSV and then we can't even
fix it. :)
This commit is contained in:
Alan Orth 2019-07-29 17:40:14 +03:00
parent 8509006165
commit d7888d59a8
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -125,6 +125,8 @@ def date(field):
except ValueError: except ValueError:
print(f'Invalid date: {field}') print(f'Invalid date: {field}')
return field
def suspicious_characters(field): def suspicious_characters(field):
"""Warn about suspicious characters. """Warn about suspicious characters.