better test & msg

This commit is contained in:
Expo laptop Crowley 2023-07-10 10:03:23 +02:00
parent 5a7f197bcb
commit d0ccc46260

View File

@ -739,9 +739,10 @@ class LoadingSurvex:
print(f" {survexblock.survexfile=}")
# raise
if year:
try:
setdate_on_survexblock(year)
else:
except NameError:
print(">> why is year not set ?! {survexblock.survexfile.path}")
setdate_on_survexblock("1970")
if survexblock.date:
# do not actually need a distict variable 'currentdate' but it makes the code clearer