This commit is contained in:
Expo laptop Crowley 2023-07-10 10:33:57 +02:00
parent d0ccc46260
commit b3e2f34960

View File

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