fix: guard _vj against missing _vdmx attr

Pre-existing failure: test_pose_bridge_hands builds the
bridge via __new__, so _vj raised AttributeError on _vdmx.
Defensive getattr makes the full suite green.
This commit is contained in:
clement
2026-06-28 13:21:45 +02:00
parent 764bf02dc8
commit e1cf2af339
+1 -1
View File
@@ -101,7 +101,7 @@ class PoseSoundBridge:
def _vj(self, addr: str, args: list) -> None:
"""Mirror a pose message to VDMX if configured (silent if not)."""
if self._vdmx is not None:
if getattr(self, "_vdmx", None) is not None:
try:
self._vdmx.send_message(addr, args)
except OSError: