Commit 5c2af29f authored by Denis Bilenko's avatar Denis Bilenko

minor change in pywsgi.py

parent 023ccd80
...@@ -300,11 +300,9 @@ class WSGIHandler(object): ...@@ -300,11 +300,9 @@ class WSGIHandler(object):
try: try:
if not self.read_request(raw_requestline): if not self.read_request(raw_requestline):
return ('400', _BAD_REQUEST_RESPONSE) return ('400', _BAD_REQUEST_RESPONSE)
except ValueError, ex:
self.log_error('Invalid request: %s', str(ex) or ex.__class__.__name__)
return ('400', _BAD_REQUEST_RESPONSE)
except Exception, ex: except Exception, ex:
traceback.print_exc() if not isinstance(ex, ValueError):
traceback.print_exc()
self.log_error('Invalid request: %s', str(ex) or ex.__class__.__name__) self.log_error('Invalid request: %s', str(ex) or ex.__class__.__name__)
return ('400', _BAD_REQUEST_RESPONSE) return ('400', _BAD_REQUEST_RESPONSE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment