Private
Public Access
1
0

error checking around rdata in updateergcp

This commit is contained in:
Sander Roosendaal
2018-01-04 08:54:16 +01:00
parent e2f64c6dd1
commit cd4faf861a
2 changed files with 11 additions and 2 deletions

View File

@@ -493,7 +493,17 @@ def handle_otwsetpower(self,f1, boattype, weightvalue,
def handle_updateergcp(rower_id,workoutfilenames,debug=False,**kwargs): def handle_updateergcp(rower_id,workoutfilenames,debug=False,**kwargs):
therows = [] therows = []
for f1 in workoutfilenames: 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: if rowdata != 0:
therows.append(rowdata) therows.append(rowdata)

View File

@@ -1 +0,0 @@
E408191@CZ27LT9RCGN72.63064:1514927368