forked from expo/troggle
Survex parser fix to avoid allocation on error (by martin).
This commit is contained in:
parent
45fd219bc6
commit
ee66e1dd8d
@ -281,9 +281,9 @@ def LoadPos():
|
|||||||
x, y, z, name = r.groups()
|
x, y, z, name = r.groups()
|
||||||
try:
|
try:
|
||||||
ss = models.SurvexStation.objects.lookup(name)
|
ss = models.SurvexStation.objects.lookup(name)
|
||||||
except:
|
|
||||||
print "%s not parsed in survex" % name
|
|
||||||
ss.x = float(x)
|
ss.x = float(x)
|
||||||
ss.y = float(y)
|
ss.y = float(y)
|
||||||
ss.z = float(z)
|
ss.z = float(z)
|
||||||
ss.save()
|
ss.save()
|
||||||
|
except:
|
||||||
|
print "%s not parsed in survex" % name
|
||||||
|
Loading…
Reference in New Issue
Block a user