diff options
| author | Barry Warsaw | 2011-09-01 20:04:06 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-09-01 20:04:06 -0400 |
| commit | a6fcb3e732fbf880e02a94ce8265be6624459ed8 (patch) | |
| tree | 6a4155de4d0367a47e3393f3bb306fc019144fe2 /src/mailman/rest/lists.py | |
| parent | 232ac1d8af1b6d483a1bd7aa2bc5ae15e0450bdf (diff) | |
| download | mailman-a6fcb3e732fbf880e02a94ce8265be6624459ed8.tar.gz mailman-a6fcb3e732fbf880e02a94ce8265be6624459ed8.tar.zst mailman-a6fcb3e732fbf880e02a94ce8265be6624459ed8.zip | |
Diffstat (limited to 'src/mailman/rest/lists.py')
| -rw-r--r-- | src/mailman/rest/lists.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman/rest/lists.py b/src/mailman/rest/lists.py index 6a6388320..32aa607b6 100644 --- a/src/mailman/rest/lists.py +++ b/src/mailman/rest/lists.py @@ -155,11 +155,15 @@ class AList(_ListBase): @resource.child(roster_matcher) def roster(self, request, segments, role): """Return the collection of all a mailing list's members.""" + if self._mlist is None: + return http.not_found() return MembersOfList(self._mlist, role) @resource.child(config_matcher) def config(self, request, segments, attribute=None): """Return a mailing list configuration object.""" + if self._mlist is None: + return http.not_found() return ListConfiguration(self._mlist, attribute) |
