diff --git a/pagure/ui/admin.py b/pagure/ui/admin.py index c4ebd76..cb0dd4a 100644 --- a/pagure/ui/admin.py +++ b/pagure/ui/admin.py @@ -162,11 +162,11 @@ def admin_group(group): SESSION.rollback() flask.flash( 'Could not add user `%s` to group `%s`.' % ( - user.user, group_obj.group), + user.user, group_obj.group_name), 'error') APP.logger.debug( 'Could not add user `%s` to group `%s`.' % ( - user.user, group_obj.group)) + user.user, group_obj.group_name)) APP.logger.exception(err) flask.flash('User `%s` added.' % user.user)