500 Internal Server Error with URL .../lists/bogus/held_messages
Attempting to go to a URL like https://mail.python.org/mm3/mailman3/lists/bogus/held_messages
where the list id is non-existent and there is no trailing slash produces a 500 error instead of a 404.
ERROR 2016-08-01 22:09:25,654 base 31476 140595897632512 Internal Server Error: /mm3/mailman3/lists/bogus/held_messages
Traceback (most recent call last):
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.13-py2.7.egg/django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.13-py2.7.egg/django/core/handlers/base.py", line 147, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.13-py2.7.egg/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/postorius-1.0.3-py2.7.egg/postorius/auth/decorators.py", line 77, in wrapper
return fn(*args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/postorius-1.0.3-py2.7.egg/postorius/views/list.py", line 394, in list_moderation
mailing_list = utils.get_client().get_list(list_id)
File "/opt/mailman/mailman-bundler/venv/lib/python2.7/site-packages/mailmanclient-1.0.1-py2.7.egg/mailmanclient/_client.py", line 523, in get_list
'lists/{0}'.format(fqdn_listname))
File "/opt/mailman/mailman-bundler/venv/lib/python2.7/site-packages/mailmanclient-1.0.1-py2.7.egg/mailmanclient/_client.py", line 111, in call
raise HTTPError(url, response.status, content, response, None)
HTTPError: HTTP Error 404: 404 Not Found