removed unnecessary else
This commit is contained in:
@@ -1581,7 +1581,7 @@ def handle_otwsetpower(self,f1, boattype, weightvalue,
|
||||
grpc.channel_ready_future(channel).result(timeout=10)
|
||||
except grpc.FutureTimeoutError:
|
||||
return 0
|
||||
else:
|
||||
|
||||
stub = calculator_pb2_grpc.PowerStub(channel)
|
||||
response = stub.CalcPower(calculator_pb2.WorkoutPowerRequest(
|
||||
filename = csvfile,
|
||||
@@ -1596,6 +1596,14 @@ def handle_otwsetpower(self,f1, boattype, weightvalue,
|
||||
if result == 0:
|
||||
# send failure email
|
||||
return 0
|
||||
# do something with boat type
|
||||
try:
|
||||
rowdata = rdata(csvfile)
|
||||
except IOError:
|
||||
try:
|
||||
rowdata = rdata(csvfile)
|
||||
except IOError:
|
||||
rowdata = rdata(csvfile)
|
||||
|
||||
else:
|
||||
boatfile = {
|
||||
|
||||
Reference in New Issue
Block a user