changeset 7063:be2daa324ddf

Add missing catch of a TypeError
author Bernhard Leiner <bleiner@gmail.com>
date Fri, 03 Oct 2008 23:13:03 +0200
parents fe71e5a12a50
children 582dac23ebac af1117f37fa7
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)))