# HG changeset patch # User Bernhard Leiner # Date 1223068383 -7200 # Node ID be2daa324ddfe8558d8dc4eb89b79ee948d2e784 # Parent fe71e5a12a501646bb77dd1fd648f2a0927b4781 Add missing catch of a TypeError diff -r fe71e5a12a50 -r be2daa324ddf 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)))