Skip to content

Commit a899f49

Browse files
committed
fix EAGAIN reference
1 parent fb8c41d commit a899f49

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
@@ -477,7 +477,7 @@ def _send_bytes(
477477
try:
478478
bytes_sent += self._sock.send(view[bytes_sent:])
479479
except OSError as exc:
480-
if exc.errno == EAGAIN:
480+
if exc.errno == errno.EAGAIN:
481481
continue
482482
raise
483483

0 commit comments

Comments
 (0)