Skip to content

Commit cf69035

Browse files
committed
Removed old deprecation error
1 parent 030390a commit cf69035

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

adafruit_httpserver/server.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,7 @@ def poll(self):
164164

165165
# If a handler for route exists and is callable, call it.
166166
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-
)
167+
handler(request)
173168

174169
# If no handler exists and request method is GET, try to serve a file.
175170
elif handler is None and request.method == HTTPMethod.GET:

0 commit comments

Comments
 (0)