From bd570f0863f1b8aa3f74be6421b9fa9dabb07ddc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 23 Jul 2021 18:08:16 +0200 Subject: [PATCH] sneed --- drama/helpers/aws.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drama/helpers/aws.py b/drama/helpers/aws.py index 1e71dfaf2..a1d14944b 100644 --- a/drama/helpers/aws.py +++ b/drama/helpers/aws.py @@ -80,7 +80,7 @@ def upload_file(name, file, resize=None): print(e) print(req) print(req.text) - if "File type invalid" in req.text: return "sex" + if "File type invalid" in str(req.text): return "sex" else: return new_image = Image(