mirror of https://gitlab.com/litecord/litecord.git
parent
c3b281c940
commit
39e8a1ad7e
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue