Skip to content

Commit 6f01392

Browse files
authored
Merge pull request #249 from Neradoc/fix-missing-exception-argument
Fix missing parameter in MMQTTException
2 parents 6b0f92f + a0f49a4 commit 6f01392

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)