diff -r ba734ff5cadd -r 97ed99d1f419 mercurial/sshrepo.py --- a/mercurial/sshrepo.py Sun Apr 24 17:52:46 2011 -0500 +++ b/mercurial/sshrepo.py Sat Apr 23 00:51:25 2011 +0300 @@ -167,7 +167,7 @@ self.readerr() try: l = int(l) - except: + except ValueError: self._abort(error.ResponseError(_("unexpected response:"), l)) return self.pipei.read(l) @@ -208,7 +208,7 @@ return 1 try: return int(r) - except: + except ValueError: self._abort(error.ResponseError(_("unexpected response:"), r)) instance = sshrepository