change minor code syntax

master
Aevann 2023-10-15 18:05:35 +03:00
parent ddf429af3d
commit f80377a31b
1 changed files with 1 additions and 2 deletions

View File

@ -215,8 +215,7 @@ def process_image(filename, v, resize=0, trim=False, uploader_id=None):
except:
os.remove(filename)
if has_request:
abort(400, ("An uploaded image couldn't be converted to WEBP. "
"Please convert it to WEBP elsewhere then upload it again."))
abort(400, "An uploaded image couldn't be converted to WEBP. Please convert it to WEBP elsewhere then upload it again.")
return None
size_after_conversion = os.stat(filename).st_size