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 030390a commit cf69035Copy full SHA for cf69035
adafruit_httpserver/server.py
@@ -164,12 +164,7 @@ def poll(self):
164
165
# If a handler for route exists and is callable, call it.
166
if handler is not None and callable(handler):
167
- output = handler(request)
168
- # TODO: Remove this deprecation error in future
169
- if isinstance(output, HTTPResponse):
170
- raise RuntimeError(
171
- "Returning an HTTPResponse from a route handler is deprecated."
172
- )
+ handler(request)
173
174
# If no handler exists and request method is GET, try to serve a file.
175
elif handler is None and request.method == HTTPMethod.GET:
0 commit comments