diff -r d901c36bcfce -r 358d8bed9626 wsgi/handler.py --- a/wsgi/handler.py Thu Feb 14 15:39:23 2013 +0100 +++ b/wsgi/handler.py Thu Feb 14 15:38:25 2013 +0100 @@ -118,7 +118,7 @@ try: path = req.path result = self.appli.handle_request(req, path) - except DirectResponse, ex: + except DirectResponse as ex: return ex.response return WSGIResponse(req.status_out, req, result)