mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-11-25 23:28:18 +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:
parent
8509006165
commit
d7888d59a8
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user