From 5e7a634a1c23697a2f99ce6daa9fbbd948ded402 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 12 Sep 2021 02:08:29 +0200 Subject: [PATCH] fd --- 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 75e8501a0..f7a9f3c45 100644 --- a/files/helpers/images.py +++ b/files/helpers/images.py @@ -52,7 +52,7 @@ def upload_ibb(filepath=None, file=None, resize=False): url = resp['url'] except Exception as e: print(e) - if req: print(req.json()) + print(req.text) return return url @@ -102,7 +102,7 @@ def upload_imgur(filepath=None, file=None, resize=False): if "_d." in url: url += "?maxwidth=9999" except Exception as e: print(e) - if req: print(req.json()) + print(req.text) return new_image = Image(text=url, deletehash=resp["deletehash"])