Skip to content

Commit a0f49a4

Browse files
committed
fix missing parameter in MMQTTException
1 parent 6b0f92f commit a0f49a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ def _wait_for_msg( # noqa: PLR0912, Too many branches
10381038
if error.errno in (errno.ETIMEDOUT, errno.EAGAIN):
10391039
# raised by a socket timeout if 0 bytes were present
10401040
return None
1041-
raise MMQTTException from error
1041+
raise MMQTTException("Unexpected error while waiting for messages") from error
10421042

10431043
if res in [None, b""]:
10441044
# If we get here, it means that there is nothing to be received

0 commit comments

Comments
 (0)