summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mailman/rest/members.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mailman/rest/members.py b/src/mailman/rest/members.py
index f673cfaa5..5ea5049c7 100644
--- a/src/mailman/rest/members.py
+++ b/src/mailman/rest/members.py
@@ -328,6 +328,9 @@ class AllMembers(_MemberBase):
except MembershipIsBannedError:
bad_request(response, b'Membership is banned')
return
+ except AlreadySubscribedError:
+ bad_request(response, email+' is already an owner of the list '+ mlist.list_name)
+ return
# The subscription completed. Let's get the resulting member
# and return the location to the new member. Member ids are
# UUIDs and need to be converted to URLs because JSON doesn't