forked from rDrama/rDrama
iojsjufu
parent
9cb02e284b
commit
de2f1315c9
|
@ -108,6 +108,7 @@ def upload_video(file):
|
||||||
|
|
||||||
resp = r.json()['data']
|
resp = r.json()['data']
|
||||||
except requests.HTTPError as e:
|
except requests.HTTPError as e:
|
||||||
|
if r: print(r.json())
|
||||||
raise UploadException(f"Status code {e.response.status_code} not in range 2**")
|
raise UploadException(f"Status code {e.response.status_code} not in range 2**")
|
||||||
except Exception:
|
except Exception:
|
||||||
raise UploadException("Error, please try again later.")
|
raise UploadException("Error, please try again later.")
|
||||||
|
|
Loading…
Reference in New Issue