jdijefjoirw
This commit is contained in:
parent
4b765f4c4c
commit
f37b0fbccc
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue