diff --git a/app/utils.py b/app/utils.py index c7ed47090..dc3713743 100644 --- a/app/utils.py +++ b/app/utils.py @@ -563,7 +563,10 @@ class AgreementInfo: def _get_info(self): - details = self.domains.get(self._match) or {} + details = self.domains.get(self._match) + + if isinstance(details, None): + raise TypeError('Domain must have details ({})'.format(self._match)) if isinstance(details, str): self.is_canonical = False