This commit is contained in:
Aevann1 2021-09-07 04:07:11 +02:00
parent e5ff4165b9
commit 44ce46513a
3 changed files with 8 additions and 6 deletions

View file

@ -110,7 +110,7 @@ def upload_video(file):
resp = r.json()['data']
except requests.HTTPError as e:
raise UploadException("Invalid video. Make sure it's 1 minute long or shorter.")
except Exception:
except:
raise UploadException("Error, please try again later.")
finally:
remove(file_path)