Commit 02d1f19b authored by Joel Martin's avatar Joel Martin

Pull from websockify.

Fix python 2.4 CClose exception handling.
parent 4910600b
......@@ -765,10 +765,12 @@ Sec-WebSocket-Accept: %s\r
self.ws_connection = True
self.new_client()
except self.CClose as e:
except self.CClose:
# Close the client
_, exc, _ = sys.exc_info()
if self.client:
print exc
print repr(exc.args)
self.send_close(exc.args[0], exc.args[1])
except self.EClose:
_, exc, _ = sys.exc_info()
......
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