Skip to content

Commit ff31ec9

Browse files
committed
adafruit#16 use the request path in the exception
1 parent aff32a3 commit ff31ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_wsgi/wsgi_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __call__(self, environ: Dict[str, str], start_response: Callable):
7171
except (ValueError, TypeError) as err:
7272
raise RuntimeError(
7373
"Proper HTTP response return not given for request handler '{}'".format(
74-
route["func"].__name__
74+
request.path
7575
)
7676
) from err
7777
start_response(status, headers)

0 commit comments

Comments
 (0)