2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00

bug in python 3.9?

This commit is contained in:
Philip Sargent 2022-12-15 01:06:54 +00:00
parent 5cc6c26606
commit 5e9fd7fd77

View File

@ -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