From 261753e399b5727664238ed9b216defba4ac6343 Mon Sep 17 00:00:00 2001 From: Visual Date: Mon, 30 Mar 2020 17:13:39 +0000 Subject: [PATCH] Removed and fixed broken checks --- litecord/images.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/litecord/images.py b/litecord/images.py index 6b01327..a28bd48 100644 --- a/litecord/images.py +++ b/litecord/images.py @@ -333,7 +333,7 @@ class IconManager: *args, ) - if not icon_row: + if icon_row is None: return None icon = Icon(icon_row["key"], icon_row["hash"], icon_row["mime"]) @@ -371,9 +371,6 @@ class IconManager: # get an extension for the given data uri extension = get_ext(mime) - if "bsize" in kwargs and len(raw_data) > kwargs["bsize"]: - return _invalid(kwargs) - # size management is different for gif files # as they're composed of multiple frames. if "size" in kwargs and mime == "image/gif": @@ -529,3 +526,4 @@ class IconManager: await self.delete(old_icon) return await self.put(scope, key, new_icon_data, **kwargs) +