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()
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user