Skip to content

Commit c0bdb28

Browse files
authored
Fix teleop disconnect during eval (huggingface#1364)
1 parent 98337e6 commit c0bdb28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lerobot/record.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ def record(cfg: RecordConfig) -> LeRobotDataset:
330330
log_say("Stop recording", cfg.play_sounds, blocking=True)
331331

332332
robot.disconnect()
333-
teleop.disconnect()
333+
if teleop is not None:
334+
teleop.disconnect()
334335

335336
if not is_headless() and listener is not None:
336337
listener.stop()

0 commit comments

Comments
 (0)