File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
src/superannotate/lib/app/interface Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -795,13 +795,18 @@ def assign_folder(
795795 :type users: list of str
796796 """
797797
798- contributors = (
799- self . controller . projects . get_by_name (
800- project_name = project_name , include_contributors = True
801- )
802- . data [ "project" ]
803- . users
798+ response = self . controller . projects . get_by_name ( name = project_name )
799+ if response . errors :
800+ raise AppException ( response . errors )
801+ project = response . data
802+ response = self . controller . projects . get_metadata (
803+ project = project , include_contributors = True
804804 )
805+
806+ if response .errors :
807+ raise AppException (response .errors )
808+
809+ contributors = response .data .users
805810 verified_users = [i ["user_id" ] for i in contributors ]
806811 verified_users = set (users ).intersection (set (verified_users ))
807812 unverified_contributor = set (users ) - verified_users
You can’t perform that action at this time.
0 commit comments