Handle Mailinglist without domain address

This commit is contained in:
Santiago L 2021-06-08 10:43:49 +02:00
parent 5281e9595e
commit 30bb572589
1 changed files with 4 additions and 1 deletions

View File

@ -301,7 +301,10 @@ class MailinglistService(OrchestraModel):
@property
def address_name(self):
return "{}@{}".format(self.data['address_name'], self.data['address_domain']['name'])
address_domain = self.data['address_domain']
if address_domain is None:
return self.data['address_name']
return "{}@{}".format(self.data['address_name'], address_domain['name'])
@property
def manager_url(self):