changeset 1160:0da98529a476

Fix TypeError
author Vincent Wagelaar <vincent@ricardis.tudelft.nl>
date Tue, 30 Aug 2005 14:52:58 +0100
parents b6f5a947e62e
children 7654d8f2ccf6
files mercurial/hgweb.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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