extmod/uasyncio: Use .errno instead of .args[0] for OSError exceptions.

Signed-off-by: Damien George <damien@micropython.org>
pull/7136/head
Damien George 2021-04-20 17:12:08 +10:00
rodzic ac1d01d43e
commit 342d55529d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -82,7 +82,7 @@ async def open_connection(host, port):
try:
s.connect(ai[-1])
except OSError as er:
if er.args[0] != EINPROGRESS:
if er.errno != EINPROGRESS:
raise er
yield core._io_queue.queue_write(s)
return ss, ss