From 95d82073f36641e71830dd1b55507236286a2f28 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 4 Aug 2023 16:19:00 +0300 Subject: [PATCH] fix some banners or sidebars not being uploaded when 1 of them is a repeat --- files/helpers/media.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index 806559eff..e00b45d10 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -248,8 +248,6 @@ def process_image(filename, v, resize=0, trim=False, uploader_id=None, db=None): if i_hash in hashes.keys(): os.remove(filename) - if has_request: - abort(409, "Image already exists! " + hashes[i_hash].split('/')[-1]) return None db = db or g.db