diff --git a/discord/asset.py b/discord/asset.py index 4e592f678..971a07c34 100644 --- a/discord/asset.py +++ b/discord/asset.py @@ -96,10 +96,12 @@ class Asset: return cls(state, url.format(id, hash, format, size, key=key)) def __str__(self): - return self._url + return self._url if self._url is not None else '' def __len__(self): - return len(self._url) + if self._url: + return len(self._url) + return 0 def __bool__(self): return self._url is not None