From 4739bfc6aae8465655256b0755a92de90ed91a1e Mon Sep 17 00:00:00 2001 From: Sergei Chertkov Date: Tue, 9 Jan 2024 11:13:52 +0000 Subject: [PATCH] Fix user_client.create_ontology method --- encord/user_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encord/user_client.py b/encord/user_client.py index 17de56c8b..3abbaf9c0 100644 --- a/encord/user_client.py +++ b/encord/user_client.py @@ -613,7 +613,7 @@ def get_ontologies( def create_ontology( self, title: str, description: str = "", structure: Optional[OntologyStructure] = None ) -> Ontology: - structure_dict = structure.to_dict() if structure else dict() + structure_dict = structure.to_dict() if structure else OntologyStructure().to_dict() ontology = { "title": title, "description": description,