Skip to content

Commit 1649a45

Browse files
authored
Update server.py
Ensure unexpected OSError isn't swallowed.
1 parent fc07ed4 commit 1649a45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_httpserver/server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def _receive_header_bytes(
104104
except OSError as ex:
105105
if ex.errno == ETIMEDOUT:
106106
break
107+
raise
107108
except Exception as ex:
108109
raise ex
109110
return received_bytes
@@ -122,6 +123,7 @@ def _receive_body_bytes(
122123
except OSError as ex:
123124
if ex.errno == ETIMEDOUT:
124125
break
126+
raise
125127
except Exception as ex:
126128
raise ex
127129
return received_body_bytes[:content_length]

0 commit comments

Comments
 (0)