File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ def poll(self):
155
155
conn , received_body_bytes , content_length
156
156
)
157
157
158
+ # Find a handler for the route
158
159
handler = self .routes .find_handler (
159
160
_HTTPRoute (request .path , request .method )
160
161
)
@@ -176,13 +177,13 @@ def poll(self):
176
177
request , status = CommonHTTPStatus .BAD_REQUEST_400
177
178
).send ()
178
179
179
- except OSError as ex :
180
- # handle EAGAIN and ECONNRESET
181
- if ex .errno == EAGAIN :
182
- # there is no data available right now, try again later.
180
+ except OSError as error :
181
+ # Handle EAGAIN and ECONNRESET
182
+ if error .errno == EAGAIN :
183
+ # There is no data available right now, try again later.
183
184
return
184
- if ex .errno == ECONNRESET :
185
- # connection reset by peer, try again later.
185
+ if error .errno == ECONNRESET :
186
+ # Connection reset by peer, try again later.
186
187
return
187
188
raise
188
189
You can’t perform that action at this time.
0 commit comments