small bug fixes
This commit is contained in:
@@ -1273,8 +1273,7 @@ def new_workout_from_file(r, f2,
|
||||
message = None
|
||||
try:
|
||||
fileformat = get_file_type(f2)
|
||||
print(fileformat,'aa')
|
||||
except IOError:
|
||||
except (IOError,UnicodeDecodeError):
|
||||
os.remove(f2)
|
||||
message = "Rowsandall could not process this file. The extension is supported but the file seems corrupt. Contact info@rowsandall.com if you think this is incorrect."
|
||||
return (0, message, f2)
|
||||
|
||||
Reference in New Issue
Block a user