error checking around rdata in updateergcp
This commit is contained in:
@@ -493,7 +493,17 @@ def handle_otwsetpower(self,f1, boattype, weightvalue,
|
||||
def handle_updateergcp(rower_id,workoutfilenames,debug=False,**kwargs):
|
||||
therows = []
|
||||
for f1 in workoutfilenames:
|
||||
rowdata = rdata(f1)
|
||||
try:
|
||||
rowdata = rdata(f1)
|
||||
except IOError:
|
||||
try:
|
||||
rowdata = rdata(f1 + '.csv')
|
||||
except IOError:
|
||||
try:
|
||||
rowdata = rdata(f1 + '.gz')
|
||||
except IOError:
|
||||
rowdata = 0
|
||||
|
||||
if rowdata != 0:
|
||||
therows.append(rowdata)
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
E408191@CZ27LT9RCGN72.63064:1514927368
|
||||
Reference in New Issue
Block a user