Commit 4307f94e authored by Simon Hanna's avatar Simon Hanna

Return 404 instead of 500 if member doesn't exist

parent eb9414d6
......@@ -140,6 +140,8 @@ def list_member_options(request, list_id, email):
mm_member = client.get_member(list_id, email)
member_prefs = mm_member.preferences
except ValueError:
raise Http404(_('Member does not exist'))
except Mailman404Error:
return render(request, template_name, {'nolists': 'true'})
initial_moderation = dict([
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment