eclipse / paho.mqtt.python

paho.mqtt.python
Other
2.17k stars 723 forks source link

Upgrade ConnectionError to OSError #671

Closed enkiusz closed 2 years ago

enkiusz commented 2 years ago

Change ConnectionError to more generic OSError. This allows client.py to catch more failures (such as socket timeouts) and gracefully reconnect in these cases.

Also some minor cleanups in exception handling.