chore(test): try import rs protect

This commit is contained in:
Steven Palma
2025-05-21 15:16:20 +02:00
parent 625bb9c9d8
commit 95f3e53eba

View File

@@ -30,7 +30,7 @@ from lerobot.common.errors import DeviceAlreadyConnectedError, DeviceNotConnecte
try:
from lerobot.common.cameras.realsense import RealSenseCamera, RealSenseCameraConfig
except (ImportError, ModuleNotFoundError):
except (ImportError, ModuleNotFoundError, NameError):
pytest.skip("pyrealsense2 not available", allow_module_level=True)
TEST_ARTIFACTS_DIR = Path(__file__).parent.parent / "artifacts" / "cameras"