From b92d562bfeacf07db3f76a327a18c5e224b10876 Mon Sep 17 00:00:00 2001 From: Alec Delaney Date: Tue, 15 Mar 2022 21:58:18 -0400 Subject: [PATCH] Linted and reformatted --- adafruit_wsgi/wsgi_app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adafruit_wsgi/wsgi_app.py b/adafruit_wsgi/wsgi_app.py index c1cc67c..a9e78ae 100644 --- a/adafruit_wsgi/wsgi_app.py +++ b/adafruit_wsgi/wsgi_app.py @@ -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