summaryrefslogtreecommitdiff
path: root/src/mailman/rest/publication.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mailman/rest/publication.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mailman/rest/publication.py b/src/mailman/rest/publication.py
index 7c121a1c3..1918dcbc0 100644
--- a/src/mailman/rest/publication.py
+++ b/src/mailman/rest/publication.py
@@ -56,16 +56,8 @@ class AdminWebServicePublication(Publication):
"""See `IPublication`."""
# Any in-progress transaction must be aborted.
config.db.abort()
- # XXX BAW 2009-08-06 This should not be necessary. I need to register
- # a view so that 404 will be returned for a NotFound.
- exception = exc_info[1]
- if isinstance(exception, NotFound):
- request.response.reset()
- request.response.setStatus(404)
- request.response.setResult('')
- else:
- super(AdminWebServicePublication, self).handleException(
- application, request, exc_info, retry_allowed)
+ super(AdminWebServicePublication, self).handleException(
+ application, request, exc_info, retry_allowed)
def endRequest(self, request, ob):
"""Ends the interaction."""