Fix TypeError
authorVincent Wagelaar <vincent@ricardis.tudelft.nl>
Tue, 30 Aug 2005 14:52:58 +0100
changeset 1160 0da98529a476
parent 1159 b6f5a947e62e
child 1161 7654d8f2ccf6
Fix TypeError
mercurial/hgweb.py
--- 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