2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00

Survex parser fix to avoid allocation on error (by martin).

This commit is contained in:
expo 2015-06-24 04:09:19 +01:00
parent a4651eaa0a
commit 03cad0a37f

View File

@ -281,9 +281,9 @@ def LoadPos():
x, y, z, name = r.groups()
try:
ss = models.SurvexStation.objects.lookup(name)
ss.x = float(x)
ss.y = float(y)
ss.z = float(z)
ss.save()
except:
print "%s not parsed in survex" % name
ss.x = float(x)
ss.y = float(y)
ss.z = float(z)
ss.save()