mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-24 04:10:57 -05:00
Don’t allow domains to be none
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user