From f6c10494744a62a198bbf2c8761b67051e460044 Mon Sep 17 00:00:00 2001 From: Simon Alibert Date: Tue, 4 Mar 2025 11:24:05 +0100 Subject: [PATCH] Update errors --- lerobot/common/errors.py | 6 ------ lerobot/common/utils/robot_utils.py | 21 --------------------- 2 files changed, 27 deletions(-) diff --git a/lerobot/common/errors.py b/lerobot/common/errors.py index aba958a1..4f506b61 100644 --- a/lerobot/common/errors.py +++ b/lerobot/common/errors.py @@ -1,9 +1,3 @@ -class ConnectionError(Exception): - """Base exception class for connection errors.""" - - pass - - class DeviceNotConnectedError(ConnectionError): """Exception raised when the device is not connected.""" diff --git a/lerobot/common/utils/robot_utils.py b/lerobot/common/utils/robot_utils.py index 19bb637e..593773b5 100644 --- a/lerobot/common/utils/robot_utils.py +++ b/lerobot/common/utils/robot_utils.py @@ -28,24 +28,3 @@ def safe_disconnect(func): raise e return wrapper - - -class RobotDeviceNotConnectedError(Exception): - """Exception raised when the robot device is not connected.""" - - def __init__( - self, message="This robot device is not connected. Try calling `robot_device.connect()` first." - ): - self.message = message - super().__init__(self.message) - - -class RobotDeviceAlreadyConnectedError(Exception): - """Exception raised when the robot device is already connected.""" - - def __init__( - self, - message="This robot device is already connected. Try not calling `robot_device.connect()` twice.", - ): - self.message = message - super().__init__(self.message)