jdijefjoirw

master
fireworks88 2021-09-05 19:22:18 +02:00
parent de2f1315c9
commit 9996699188
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@ def upload_video(file):
with open(file_path, 'rb') as f:
try:
r = requests.post('https://api.imgur.com/3/upload', headers=headers, files=[], data={"video": f})
r.raise_for_status()
print(r.text)
#r.raise_for_status()
resp = r.json()['data']
except requests.HTTPError as e: