Skip to content

Commit

Permalink
Linted and reformatted
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed Mar 16, 2022
1 parent a317a99 commit b92d562
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion adafruit_wsgi/wsgi_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ def __call__(self, environ: Dict[str, str], start_response: Callable):
args, route = match
try:
status, headers, resp_data = route["func"](request, *args)
except ValueError, TypeError:
except (ValueError, TypeError) as err:
raise RuntimeError(
"Proper HTTP response return not given for request handler '{}'".format(
route["func"].__name__
)
) from err
start_response(status, headers)
return resp_data

Expand Down

0 comments on commit b92d562

Please sign in to comment.