[PATCH] Add missing catch of a TypeError
Bernhard Leiner
mailinglists.bleiner at gmail.com
Fri Oct 3 16:21:30 CDT 2008
# HG changeset patch
# User Bernhard Leiner <bleiner at gmail.com>
# Date 1223068383 -7200
# Node ID adfcce29c287d78f2f134a0d531dc3e4b76c7a2b
# Parent 8b874f8cd29f46f9412cf97352cc5ba5528f10f3
Add missing catch of a TypeError
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -2019,7 +2019,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)))
--
Bernhard Leiner http://bernh.net
More information about the Mercurial-devel
mailing list