Skip to content

Commit

Permalink
aas.adapter: raise when model refs to cds are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
JGrothoff committed Dec 9, 2024
1 parent f8b232a commit ee006dc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sdk/basyx/aas/adapter/aasx.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,10 @@ def write_aas(self,
try:
cd = semantic_id.resolve(object_store)
except KeyError:
logger.info("ConceptDescription for semanticId %s not found in object store.", str(semantic_id))
continue
raise KeyError("ConceptDescription for semanticId %s not found in object store.", str(semantic_id))
except model.UnexpectedTypeError as e:
logger.error("semanticId %s resolves to %s, which is not a ConceptDescription",
raise model.UnexpectedTypeError("semanticId %s resolves to %s, which is not a ConceptDescription",
str(semantic_id), e.value)
continue
concept_descriptions.append(cd)
objects_to_be_written.update(concept_descriptions)

Expand Down

0 comments on commit ee006dc

Please sign in to comment.