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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user