From 2bbc7e14681dd4358d6fee933da2b8fb14a51a59 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 2 Sep 2021 15:18:04 +0200 Subject: [PATCH] fd --- files/helpers/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/images.py b/files/helpers/images.py index 7b9b35682..63f737f96 100644 --- a/files/helpers/images.py +++ b/files/helpers/images.py @@ -44,7 +44,7 @@ def upload_file(file=None, resize=False, png=False): url = url.replace(".png", "_d.png").replace(".jpg", "_d.jpg").replace(".jpeg", "_d.jpeg") if "_d." in url: url += "?maxwidth=9999" except: - print(req.json()) + if req: print(req.json()) return new_image = Image(text=url, deletehash=resp["deletehash"])