We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c905f7 + bbf6850 commit f871143Copy full SHA for f871143
adafruit_minimqtt/adafruit_minimqtt.py
@@ -435,7 +435,10 @@ def connect(
435
self._reset_reconnect_backoff()
436
return ret
437
except (MemoryError, OSError, RuntimeError) as e:
438
+ if isinstance(e, RuntimeError) and e.args == ("pystack exhausted",):
439
+ raise
440
self.logger.warning(f"Socket error when connecting: {e}")
441
+ last_exception = e
442
backoff = False
443
except MMQTTException as e:
444
self._close_socket()
0 commit comments