File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
libs/labelbox/src/labelbox/schema Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -93,9 +93,6 @@ def __init__(
93
93
color (UserGroupColor, optional): The color of the user group. Defaults to UserGroupColor.BLUE.
94
94
users (Set[User], optional): The set of users in the user group. Defaults to an empty set.
95
95
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.
99
96
"""
100
97
super ().__init__ (
101
98
client = client ,
@@ -105,10 +102,6 @@ def __init__(
105
102
users = users ,
106
103
projects = projects ,
107
104
)
108
- if not self .client .enable_experimental :
109
- raise RuntimeError (
110
- "Please enable experimental in client to use UserGroups"
111
- )
112
105
113
106
def get (self ) -> "UserGroup" :
114
107
"""
@@ -285,7 +278,7 @@ def create(self) -> "UserGroup":
285
278
except Exception as e :
286
279
error = e
287
280
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
289
282
raise ResourceCreationError (
290
283
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 } "
291
284
)
You can’t perform that action at this time.
0 commit comments