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
1 changed files with 2 additions and 0 deletions

View File

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