Skip to content

Commit

Permalink
Reset connection error before connecting
Browse files Browse the repository at this point in the history
  • Loading branch information
Pacifica15 authored Jan 5, 2024
1 parent 1133b40 commit acc5287
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roombapy/roomba.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def connect(self):
self.time = time.time() # save connection time

def _connect(self):
self.client_error=None
is_connected = self.remote_client.connect()
if not is_connected:
raise RoombaConnectionError(
Expand Down

0 comments on commit acc5287

Please sign in to comment.