Skip to content

Commit 91ad8d3

Browse files
committed
Python 3.14 returns BlockingIOError instead of TypeError for read_stream
1 parent fa82f38 commit 91ad8d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def read_stream(output):
115115
fcntl.fcntl(file_descriptor, fcntl.F_SETFL, file_flags | os.O_NONBLOCK)
116116
try:
117117
return output.read()
118-
except TypeError:
118+
except (TypeError, BlockingIOError):
119119
return ""
120120

121121
# Allow running as a different user if we are root

0 commit comments

Comments
 (0)