fix: some fixes

This commit is contained in:
ITQ
2025-02-22 07:10:40 +03:00
parent 813ab0a459
commit ec47e7754e
3 changed files with 14 additions and 14 deletions
@@ -172,6 +172,10 @@ def upload_ad_image(
id=campaign_id,
advertiser_id=advertiser_id,
)
if ad_image.size >= 10 * 1024 * 1024:
raise HttpError(
status.BAD_REQUEST, "File can't be bigger than 10MB."
)
try:
Image.open(ad_image).verify()
except (OSError, SyntaxError):