hgweb: ignore pipe errors

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hgweb: ignore pipe errors

manifest hash: 3a3baaa175a422bf499f414b5186ed551827db56
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCpVkhywK+sNU5EO8RAo5aAJ9KPR/Gwp8YBswhyKqzVYVlgBl49ACghr65
sGKxB7ctoX9XB1WDht8WUzk=
=J2bp
-----END PGP SIGNATURE-----
This commit is contained in:
mpm@selenic.com 2005-06-07 00:21:53 -08:00
parent e6b0f779c9
commit 2155d2e394

View File

@ -662,10 +662,13 @@ def server(path, name, templates, address, port):
class hgwebhandler(BaseHTTPServer.BaseHTTPRequestHandler):
def do_POST(self):
self.do_hgweb()
try:
self.do_hgweb()
except socket.error, inst:
if inst.args[0] != 32: raise
def do_GET(self):
self.do_hgweb()
self.do_POST()
def do_hgweb(self):
query = ""