Add missing catch of a TypeError
authorBernhard Leiner <bleiner@gmail.com>
Fri, 03 Oct 2008 23:13:03 +0200
changeset 7063 be2daa324ddf
parent 7046 fe71e5a12a50
child 7064 582dac23ebac
child 7073 af1117f37fa7
Add missing catch of a TypeError
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Fri Sep 26 16:27:03 2008 +0200
+++ b/mercurial/localrepo.py	Fri Oct 03 23:13:03 2008 +0200
@@ -2107,7 +2107,7 @@
             try:
                 name, size = l.split('\0', 1)
                 size = int(size)
-            except ValueError, TypeError:
+            except (ValueError, TypeError):
                 raise util.UnexpectedOutput(
                     _('Unexpected response from remote server:'), l)
             self.ui.debug('adding %s (%s)\n' % (name, util.bytecount(size)))