summaryrefslogtreecommitdiffstats
path: root/parsers/survex.py
diff options
context:
space:
mode:
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(