summaryrefslogtreecommitdiffstats
path: root/parsers/logbooks.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-04-20 22:58:41 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-04-20 22:58:41 +0100
commitb4ba3c40ebf26cae49e93f2aa6c2f1b6e8bc556e (patch)
tree7229549717eb2492dfb0afce5e42bd83f4dd231e /parsers/logbooks.py
parent3b0c6ef2ea27fa2edbf5044f03e2dd3884ae54f5 (diff)
downloadtroggle-b4ba3c40ebf26cae49e93f2aa6c2f1b6e8bc556e.tar.gz
troggle-b4ba3c40ebf26cae49e93f2aa6c2f1b6e8bc556e.tar.bz2
troggle-b4ba3c40ebf26cae49e93f2aa6c2f1b6e8bc556e.zip
catch unknown scotsman error
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r--parsers/logbooks.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py
index 8afb0fa..4310fdb 100644
--- a/parsers/logbooks.py
+++ b/parsers/logbooks.py
@@ -447,11 +447,14 @@ def LoadLogbookForExpedition(expedition, expect):
if expedition.year in yearlinks:
logbookfile = os.path.join(expologbase, yearlinks[expedition.year][0])
+ expedition.logbookfile = yearlinks[expedition.year][0]
parsefunc = yearlinks[expedition.year][1]
else:
logbookfile = os.path.join(expologbase, expedition.year, settings.DEFAULT_LOGBOOK_FILE)
+ expedition.logbookfile = settings.DEFAULT_LOGBOOK_FILE
parsefunc = settings.DEFAULT_LOGBOOK_PARSER
cache_filename = logbookfile + ".cache"
+ expedition.save()
try:
bad_cache = False