mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-23 04:30:10 +00:00
update exception catch
This commit is contained in:
@@ -585,7 +585,7 @@ class RobstrideMotorsBus(MotorsBusBase):
|
|||||||
if msg is None:
|
if msg is None:
|
||||||
break
|
break
|
||||||
drained += 1
|
drained += 1
|
||||||
except Exception as e:
|
except (can.CanError, OSError) as e:
|
||||||
logger.debug(f"Failed to flush CAN RX queue on {self.port}: {e}")
|
logger.debug(f"Failed to flush CAN RX queue on {self.port}: {e}")
|
||||||
return drained
|
return drained
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user