Skip to content

Commit 3ecbc91

Browse files
authored
[PLT-1560] Remove experiment requirement from UserGroup (#1840)
1 parent 3f19342 commit 3ecbc91

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

libs/labelbox/src/labelbox/schema/user_group.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ def __init__(
9393
color (UserGroupColor, optional): The color of the user group. Defaults to UserGroupColor.BLUE.
9494
users (Set[User], optional): The set of users in the user group. Defaults to an empty set.
9595
projects (Set[Project], optional): The set of projects associated with the user group. Defaults to an empty set.
96-
97-
Raises:
98-
RuntimeError: If the experimental feature is not enabled in the client.
9996
"""
10097
super().__init__(
10198
client=client,
@@ -105,10 +102,6 @@ def __init__(
105102
users=users,
106103
projects=projects,
107104
)
108-
if not self.client.enable_experimental:
109-
raise RuntimeError(
110-
"Please enable experimental in client to use UserGroups"
111-
)
112105

113106
def get(self) -> "UserGroup":
114107
"""
@@ -285,7 +278,7 @@ def create(self) -> "UserGroup":
285278
except Exception as e:
286279
error = e
287280
if not result or error:
288-
# this is client side only, server doesn't have an equivalent error
281+
# This is client side only, server doesn't have an equivalent error
289282
raise ResourceCreationError(
290283
f"Failed to create user group, either user group name is in use currently, or provided user or projects don't exist server error: {error}"
291284
)

0 commit comments

Comments
 (0)