Add missing catch of a TypeError

This commit is contained in:
Bernhard Leiner 2008-10-03 23:13:03 +02:00
parent aad25b6bfd
commit f1a8298e61

View File

@ -2107,7 +2107,7 @@ class localrepository(repo.repository):
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)))