refactor: reformatted code

This commit is contained in:
ITQ
2025-02-22 07:53:33 +03:00
parent e3da9730f3
commit 92f1aeba16
3 changed files with 13 additions and 13 deletions
@@ -173,9 +173,7 @@ def upload_ad_image(
advertiser_id=advertiser_id,
)
if ad_image.size >= 10 * 1024 * 1024:
raise HttpError(
status.BAD_REQUEST, "File can't be bigger than 10MB."
)
raise HttpError(status.BAD_REQUEST, "File can't be bigger than 10MB.")
try:
Image.open(ad_image).verify()
except (OSError, SyntaxError):