diff --git a/remote_control/robot.py b/remote_control/robot.py index d158147..7461202 100644 --- a/remote_control/robot.py +++ b/remote_control/robot.py @@ -1,6 +1,4 @@ import socket -import sys - class Robot: def __init__(self, marker_id, ip): @@ -34,4 +32,6 @@ class Robot: except BrokenPipeError: print(f"error: connection to robot {self.id} with ip {self.ip} lost") pass - + except ConnectionResetError: + print(f"error: connection to robot {self.id} with ip {self.ip} lost") + pass