From 39e8a1ad7ecf347ac414560c539241ca98a74cf9 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 8 Feb 2020 13:28:29 -0300 Subject: [PATCH] images: force-cast to bool inside Icon reported in #86 --- litecord/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/images.py b/litecord/images.py index 69479af..6b01327 100644 --- a/litecord/images.py +++ b/litecord/images.py @@ -99,7 +99,7 @@ class Icon: return get_ext(self.mime) def __bool__(self): - return self.key and self.icon_hash and self.mime + return bool(self.key and self.icon_hash and self.mime) class ImageError(Exception):