Mercurial > hg-stable
diff mercurial/sshrepo.py @ 14004:97ed99d1f419
eliminate various naked except clauses
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Sat, 23 Apr 2011 00:51:25 +0300 |
parents | f1823b9f073b |
children | 924c82157d46 |
line wrap: on
line diff
--- 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