diff options
Diffstat (limited to 'src/mailman_pgp/rest/lists.py')
| -rw-r--r-- | src/mailman_pgp/rest/lists.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mailman_pgp/rest/lists.py b/src/mailman_pgp/rest/lists.py index 4cffa38..72fa7a4 100644 --- a/src/mailman_pgp/rest/lists.py +++ b/src/mailman_pgp/rest/lists.py @@ -80,8 +80,12 @@ class AListPubkey: def on_get(self, request, response): """/lists/<list_id>/key""" if self._mlist is None: - return not_found() + return not_found(response) else: + pubkey = self._mlist.pubkey + if pubkey is None: + return not_found(response) + resource = dict(public_key=str(self._mlist.pubkey), key_fingerprint=str( self._mlist.pubkey.fingerprint)) |
