Skip to content

Commit f3d445e

Browse files
committed
fix: assign empty list and append it later currently not supported
Refs: OO-LD/oold-python#3
1 parent f019153 commit f3d445e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/osw/ontology.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -810,9 +810,7 @@ def _store_ontology(self, param: StoreOntologyParam):
810810
if namespace == "Category":
811811
smw_import_type = "Category"
812812
if not hasattr(e, "subclass_of") or e.subclass_of is None:
813-
e.subclass_of = []
814-
if len(e.subclass_of) == 0:
815-
e.subclass_of.append(self.import_config.meta_class_title)
813+
e.subclass_of = [self.import_config.meta_class_title]
816814
elif namespace == "Property":
817815
smw_import_type = "Type:" + e.cast(model.Property).property_type
818816
else:

0 commit comments

Comments
 (0)