summaryrefslogtreecommitdiffstats
path: root/parsers/survex.py
diff options
context:
space:
mode:
authorExpo laptop Crowley <cucc.expedition@gmail.com>2023-07-10 10:33:57 +0200
committerExpo laptop Crowley <cucc.expedition@gmail.com>2023-07-10 10:33:57 +0200
commitb3e2f34960a4c49017c160cebbd191512fff0524 (patch)
treed9f207777261f9ca7d2c3fab3006c2d126543a69 /parsers/survex.py
parentd0ccc46260a7752e0bbc8afb867e2d979d9890ae (diff)
downloadtroggle-b3e2f34960a4c49017c160cebbd191512fff0524.tar.gz
troggle-b3e2f34960a4c49017c160cebbd191512fff0524.tar.bz2
troggle-b3e2f34960a4c49017c160cebbd191512fff0524.zip
hack fix
Diffstat (limited to 'parsers/survex.py')
-rw-r--r--parsers/survex.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/parsers/survex.py b/parsers/survex.py
index 58763c5..25bb028 100644
--- a/parsers/survex.py
+++ b/parsers/survex.py
@@ -1381,7 +1381,13 @@ class LoadingSurvex:
survexblock.survexfile.cave.slug()
self.fix_undated(survexblock) # null-op if already set
- expoyear = str(survexblock.date.year)
+ try:
+ expoyear = str(survexblock.date.year)
+ except NameError:
+ print(">> why is survexblock.date.year not set ?! in LoadSurvexQM()/n {survexblock.survexfile.path}")
+ expoyear = "1970"
+
+
try:
qm = QM.objects.create(