Skip to content

Commit b92d562

Browse files
committed
Linted and reformatted
1 parent a317a99 commit b92d562

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adafruit_wsgi/wsgi_app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,12 @@ def __call__(self, environ: Dict[str, str], start_response: Callable):
6868
args, route = match
6969
try:
7070
status, headers, resp_data = route["func"](request, *args)
71-
except ValueError, TypeError:
71+
except (ValueError, TypeError) as err:
7272
raise RuntimeError(
7373
"Proper HTTP response return not given for request handler '{}'".format(
7474
route["func"].__name__
75+
)
76+
) from err
7577
start_response(status, headers)
7678
return resp_data
7779

0 commit comments

Comments
 (0)