Private
Public Access
1
0

removing some error catching

Let's live dangerously
This commit is contained in:
Sander Roosendaal
2019-05-14 08:23:45 +02:00
parent 9dfd9b28a4
commit d38373ecf7

View File

@@ -1349,18 +1349,13 @@ def new_workout_from_file(r, f2,
# handle non-Painsled by converting it to painsled compatible CSV
if (fileformat != 'csv'):
try:
f2, summary, oarlength, inboard, fileformat = handle_nonpainsled(
f2,
fileformat,
summary=summary
)
if not f2:
message = 'Something went wrong'
return (0, message, '')
except Exception as e:
errorstring = str(sys.exc_info()[0])
message = 'Something went wrong: ' + e.message
f2, summary, oarlength, inboard, fileformat = handle_nonpainsled(
f2,
fileformat,
summary=summary
)
if not f2:
message = 'Something went wrong'
return (0, message, '')
dosummary = (fileformat != 'fit' and 'speedcoach2' not in fileformat)