Fallback to empty string for unavailable guild __str__

This commit is contained in:
Rapptz committed 2021-03-25 09:11:00 -04:00
1 parent 5cb5126548
commit 8657edfc99
1 file changed
+1 -1
+1 -1
View File
@@ -205,7 +205,7 @@ class Guild(Hashable):
self._members.pop(member.id, None)
def __str__(self):
return self.name
return self.name or ''
def __repr__(self):
attrs = (