Skip to content

Commit

Permalink
avoid catch-all Exception and log connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrippling committed Dec 2, 2024
1 parent f1875b4 commit f886d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roombapy/remote_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def connect(self) -> bool:
)
try:
self._open_mqtt_connection()
except Exception:
except OSError as e:
self.log.exception("Can't connect to %s", self.address)
else:
return True
Expand Down

0 comments on commit f886d0a

Please sign in to comment.