We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87b0e27 commit 90ce536Copy full SHA for 90ce536
adafruit_httpserver/server.py
@@ -326,12 +326,14 @@ def poll(self):
326
# Handle the request
327
response = self._handle_request(request, handler)
328
329
+ if response is None:
330
+ return
331
+
332
# Send the response
- if response is not None:
- response._send() # pylint: disable=protected-access
333
+ response._send() # pylint: disable=protected-access
334
- if self.debug:
- _debug_response_sent(response)
335
+ if self.debug:
336
+ _debug_response_sent(response)
337
338
except Exception as error: # pylint: disable=broad-except
339
if isinstance(error, OSError):
0 commit comments