Skip to content

Commit

Permalink
Merge branch 'main' into fix-RelationalBone.refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
phorward authored Jan 29, 2025
2 parents c2cc595 + 4726d59 commit 44193b7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/viur/core/bones/relational.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,14 @@ def setSystemInitialized(self):
"""
super().setSystemInitialized()
from viur.core.skeleton import RefSkel, SkeletonInstance
self._refSkelCache = RefSkel.fromSkel(self.kind, *self.refKeys)

try:
self._refSkelCache = RefSkel.fromSkel(self.kind, *self.refKeys)
except AssertionError:
raise NotImplementedError(
f"Skeleton {self.skel_cls!r} {self.__class__.__name__} {self.name!r}: Kind {self.kind!r} unknown"
)

self._skeletonInstanceClassRef = SkeletonInstance
self._ref_keys = set(self._refSkelCache.__boneMap__.keys())

Expand Down

0 comments on commit 44193b7

Please sign in to comment.