--- a/mercurial/hgweb.py Tue Aug 30 10:57:52 2005 +0200 +++ b/mercurial/hgweb.py Tue Aug 30 14:52:58 2005 +0100 @@ -75,6 +75,8 @@ else: try: self.out.write(thing) + except TypeError: + self.out.write(str(thing)) except socket.error, x: if x[0] != errno.ECONNRESET: raise