kopia lustrzana https://gitlab.com/marnanel/chapeau
trilby's RemotePerson's __str__() never returns None now! (Whoops.)
rodzic
866f3db5cc
commit
83c7f511b5
|
@ -185,7 +185,12 @@ class RemotePerson(Person):
|
|||
return False
|
||||
|
||||
def __str__(self):
|
||||
return self.url
|
||||
if self.url is not None:
|
||||
return f'[{self.url}]'
|
||||
elif self.acct is not None:
|
||||
return f'[{self.acct}]'
|
||||
else:
|
||||
return '[<empty>]'
|
||||
|
||||
@property
|
||||
def hostname(self):
|
||||
|
|
Ładowanie…
Reference in New Issue