removing some error catching
Let's live dangerously
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user