diff --git a/parsers/logbooks.py b/parsers/logbooks.py index c221fe1..ccd935f 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -524,8 +524,12 @@ def parser_blog(year, expedition, txt): break datestamp = match_datetime.group(1) - tripdate = datetime.fromisoformat(datestamp) - # print(f" - tid: {tid} '{trippeople}' '{tripdate}'") + try: + tripdate = datetime.fromisoformat(datestamp) + except: + print(datestamp[0:9]) + tripdate = datetime.fromisoformat(datestamp[0:10]) + # print(f" - tid: {tid} '{trippeople}' '{tripdate}'") tripname = f"UK Caving Blog post {logbook_entry_count}" # must be unique for a given date