mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Merge pull request #2756 from alphagov/clean-up-domains
Clean up domains file
This commit is contained in:
1307
app/domains.yml
1307
app/domains.yml
File diff suppressed because it is too large
Load Diff
@@ -563,7 +563,10 @@ class AgreementInfo:
|
||||
|
||||
def _get_info(self):
|
||||
|
||||
details = self.domains.get(self._match) or {}
|
||||
details = self.domains.get(self._match, {})
|
||||
|
||||
if details is None:
|
||||
raise TypeError('Domain must have details ({})'.format(self._domain))
|
||||
|
||||
if isinstance(details, str):
|
||||
self.is_canonical = False
|
||||
|
||||
Reference in New Issue
Block a user