Don't allow an exception when trying to parse a date cause complete failure

This commit is contained in:
Trenton H
2022-11-17 13:37:37 -08:00
parent 0ae8200593
commit 914661fdbb
2 changed files with 7 additions and 2 deletions

View File

@@ -260,7 +260,7 @@ def parse_date_generator(filename, text) -> Iterator[datetime.datetime]:
try:
date = __parser(date_string, date_order)
except (TypeError, ValueError):
except Exception:
# Skip all matches that do not parse to a proper date
date = None