summaryrefslogtreecommitdiffstats
path: root/parsers/survex.py
diff options
context:
space:
mode:
authorExpo laptop Crowley <cucc.expedition@gmail.com>2023-07-10 10:03:23 +0200
committerExpo laptop Crowley <cucc.expedition@gmail.com>2023-07-10 10:03:23 +0200
commitd0ccc46260a7752e0bbc8afb867e2d979d9890ae (patch)
tree9e0ff29f26927ec36af31cd806be088344f53a17 /parsers/survex.py
parent5a7f197bcb370638e6d54a4358ddca204a3e3ebb (diff)
downloadtroggle-d0ccc46260a7752e0bbc8afb867e2d979d9890ae.tar.gz
troggle-d0ccc46260a7752e0bbc8afb867e2d979d9890ae.tar.bz2
troggle-d0ccc46260a7752e0bbc8afb867e2d979d9890ae.zip
better test & msg
Diffstat (limited to 'parsers/survex.py')
-rw-r--r--parsers/survex.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/parsers/survex.py b/parsers/survex.py
index 5394de6..58763c5 100644
--- a/parsers/survex.py
+++ b/parsers/survex.py
@@ -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