Skip to content

Commit 4455889

Browse files
committed
Another OSError derived error here.
1 parent 911445d commit 4455889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_esp32spi/adafruit_esp32spi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ def socket_connect(self, socket_num, dest, port, conn_mode=TCP_MODE):
815815
if self.socket_connected(socket_num):
816816
return True
817817
time.sleep(0.01)
818-
raise RuntimeError("Failed to establish connection")
818+
raise TimeoutError("Failed to establish connection")
819819

820820
def socket_close(self, socket_num):
821821
"""Close a socket using the ESP32's internal reference number"""

0 commit comments

Comments
 (0)