From 2db29aaa9f16ca8d085f4c08a600dc9554ba646c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 2 Oct 2021 02:36:20 +0200 Subject: [PATCH] sdfsfd --- files/helpers/images.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/images.py b/files/helpers/images.py index 492724609..027660cd2 100644 --- a/files/helpers/images.py +++ b/files/helpers/images.py @@ -33,6 +33,6 @@ def upload_ibb(file=None, resize=False): with open("image.webp", 'rb') as f: - req = requests.post('https://catbox.moe/user/api.php', data={'userhash':CATBOX_KEY, 'reqtype':'fileupload'}, files={'fileToUpload':f}) + req = requests.post('https://catbox.moe/user/api.php', data={'userhash':CATBOX_KEY, 'reqtype':'fileupload'}, files={'fileToUpload':f}).text - return req.text \ No newline at end of file + if req.startswith('https://'): return req \ No newline at end of file