diff --git a/backend-flask/InterfaceSetup.py b/backend-flask/InterfaceSetup.py index e437398..cebd02c 100644 --- a/backend-flask/InterfaceSetup.py +++ b/backend-flask/InterfaceSetup.py @@ -74,7 +74,7 @@ def asset_already_existing(self, assetId): def descriptor_already_exist(self, descriptors, assetId): descriptor = {} for _descriptor in descriptors: - if assetId == _descriptor["globalAssetId"]: + if assetId == _descriptor.get("globalAssetId", ""): return _descriptor return descriptor @@ -281,4 +281,4 @@ def push_payload_to_submodelElement(self, submodel, name, payload): return submodel return submodel - \ No newline at end of file +