mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Don’t error if service without an organisation requests to go live
It was trying to look at `organisation.domains`, which caused an `AttributeError` if there wasn’t an organisation.
This commit is contained in:
@@ -25,7 +25,7 @@ class Organisation(JSONModel):
|
||||
super().__init__(_dict)
|
||||
|
||||
if self._dict == {}:
|
||||
self.name, self.crown, self.agreement_signed = None, None, None
|
||||
self.name, self.crown, self.agreement_signed, self.domains = None, None, None, []
|
||||
|
||||
def as_human_readable(self, fallback_domain):
|
||||
if 'dwp.' in ''.join(self.domains):
|
||||
|
||||
Reference in New Issue
Block a user