Merge pull request #2756 from alphagov/clean-up-domains

Clean up domains file
This commit is contained in:
Chris Hill-Scott
2019-02-14 11:27:34 +00:00
committed by GitHub
4 changed files with 352 additions and 1037 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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