[svn r6853] Revised script to give more informative error reporting

This commit is contained in:
dave
2005-05-28 10:47:25 +02:00
parent 565248b3b3
commit 51d8d64a3d
2 changed files with 11 additions and 7 deletions

View File

@@ -73,9 +73,12 @@ def parse_csvfile():
#if(cave["Depth"]): print number, "depth:", cave["Depth"]
#if(cave["Extent"]): print number, "extent:", cave["Extent"]
else:
l,d,w = map(float, chomp(stats).split("\t"))
caveslist.append([number,l,d,w,cave])
try:
l,d,w = map(float, chomp(stats).split("\t"))
caveslist.append([number,l,d,w,cave])
except:
print "Error on", number
raise
print "|\nWriting output file"
return caveslist