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 45fd219bc6
commit ee66e1dd8d

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