diff --git a/progit/ui/repo.py b/progit/ui/repo.py index b4c5dd4..175fe4a 100644 --- a/progit/ui/repo.py +++ b/progit/ui/repo.py @@ -738,7 +738,7 @@ def remove_user(repo, userid, username=None): for user in repo.users: if str(user.id) == str(userid): - SESSION.delete(user) + repo.users.remove(user) break try: SESSION.commit()