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
|
# handle non-Painsled by converting it to painsled compatible CSV
|
||||||
if (fileformat != 'csv'):
|
if (fileformat != 'csv'):
|
||||||
try:
|
f2, summary, oarlength, inboard, fileformat = handle_nonpainsled(
|
||||||
f2, summary, oarlength, inboard, fileformat = handle_nonpainsled(
|
f2,
|
||||||
f2,
|
fileformat,
|
||||||
fileformat,
|
summary=summary
|
||||||
summary=summary
|
)
|
||||||
)
|
if not f2:
|
||||||
if not f2:
|
message = 'Something went wrong'
|
||||||
message = 'Something went wrong'
|
|
||||||
return (0, message, '')
|
|
||||||
except Exception as e:
|
|
||||||
errorstring = str(sys.exc_info()[0])
|
|
||||||
message = 'Something went wrong: ' + e.message
|
|
||||||
return (0, message, '')
|
return (0, message, '')
|
||||||
|
|
||||||
dosummary = (fileformat != 'fit' and 'speedcoach2' not in fileformat)
|
dosummary = (fileformat != 'fit' and 'speedcoach2' not in fileformat)
|
||||||
|
|||||||
Reference in New Issue
Block a user