mercurial/sshrepo.py
changeset 14004 97ed99d1f419
parent 13827 f1823b9f073b
child 14076 924c82157d46
--- 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