Don’t let domains have none values

This commit is contained in:
Chris Hill-Scott
2019-02-12 10:33:02 +00:00
parent 0ce4dca799
commit ba8d2ff1e3
3 changed files with 7 additions and 11 deletions

View File

@@ -563,10 +563,10 @@ class AgreementInfo:
def _get_info(self):
details = self.domains.get(self._match)
details = self.domains.get(self._match, {})
if isinstance(details, None):
raise TypeError('Domain must have details ({})'.format(self._match))
if details is None:
raise TypeError('Domain must have details ({})'.format(self._domain))
if isinstance(details, str):
self.is_canonical = False