Closed
Description
When connect()
fails due to repeated failures, it throws RuntimeError
:
Adafruit_CircuitPython_MiniMQTT/adafruit_minimqtt/adafruit_minimqtt.py
Lines 269 to 279 in 67e0ade
This is not very useful for the caller. Some suggestions:
- rethrow the last exception
- wrap the exceptions raised by
connect()
intoRuntimeError
exception (or maybe used dedicated exception) - add some info about the problem to the
RuntimeError
text (including how many times it tried)
Metadata
Metadata
Assignees
Labels
No labels