Skip to content

Commit 7e29c72

Browse files
Vaghinak BasentsyanVaghinak Basentsyan
authored andcommitted
tod
1 parent cee5c91 commit 7e29c72

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/superannotate/lib/core/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Attribute(BaseModel):
1717

1818
class AttributeGroup(BaseModel):
1919
name: StrictStr
20-
is_multiselect: Optional[int]
20+
is_multiselect: Optional[int] = False
2121
attributes: List[Attribute]
2222

2323

src/superannotate/lib/infrastructure/repositories.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ def insert(self, entity: AnnotationClassEntity):
320320
res = self._service.set_annotation_classes(
321321
self.project.uuid, self.project.team_id, [entity.to_dict()]
322322
)
323+
if "error" in res:
324+
raise AppException(res["error"])
323325
return self.dict2entity(res[0])
324326

325327
def delete(self, uuid: int):

0 commit comments

Comments
 (0)