From 4db24f2ecf07c59160ef657f1865836b58b54b99 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 12 Aug 2023 22:52:23 +0300 Subject: [PATCH] consistency --- files/helpers/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index 8e4442198..d069f073f 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -81,7 +81,7 @@ def process_audio(file, v): size = os.stat(old).st_size if size > MAX_IMAGE_AUDIO_SIZE_MB_PATRON * 1024 * 1024 or not v.patron and size > MAX_IMAGE_AUDIO_SIZE_MB * 1024 * 1024: os.remove(old) - abort(413, f"Max image/audio size is {MAX_IMAGE_AUDIO_SIZE_MB} MB ({MAX_IMAGE_AUDIO_SIZE_MB_PATRON} MB for {patron.lower()}s)") + abort(413, f"Max image/audio size is {MAX_IMAGE_AUDIO_SIZE_MB} MB ({MAX_IMAGE_AUDIO_SIZE_MB_PATRON} MB for {patron}s)") extension = guess_extension(file.content_type) if not extension: