Show More
@@ -37,7 +37,7 b' class wirerepository(repo.repository):' | |||
|
37 | 37 | d = self._call("heads") |
|
38 | 38 | try: |
|
39 | 39 | return decodelist(d[:-1]) |
|
40 | except: | |
|
40 | except ValueError: | |
|
41 | 41 | self._abort(error.ResponseError(_("unexpected response:"), d)) |
|
42 | 42 | |
|
43 | 43 | def known(self, nodes): |
@@ -45,7 +45,7 b' class wirerepository(repo.repository):' | |||
|
45 | 45 | d = self._call("known", nodes=n) |
|
46 | 46 | try: |
|
47 | 47 | return [bool(int(f)) for f in d] |
|
48 | except: | |
|
48 | except ValueError: | |
|
49 | 49 | self._abort(error.ResponseError(_("unexpected response:"), d)) |
|
50 | 50 | |
|
51 | 51 | def branchmap(self): |
@@ -67,7 +67,7 b' class wirerepository(repo.repository):' | |||
|
67 | 67 | try: |
|
68 | 68 | br = [tuple(decodelist(b)) for b in d.splitlines()] |
|
69 | 69 | return br |
|
70 | except: | |
|
70 | except ValueError: | |
|
71 | 71 | self._abort(error.ResponseError(_("unexpected response:"), d)) |
|
72 | 72 | |
|
73 | 73 | def between(self, pairs): |
@@ -78,7 +78,7 b' class wirerepository(repo.repository):' | |||
|
78 | 78 | d = self._call("between", pairs=n) |
|
79 | 79 | try: |
|
80 | 80 | r.extend(l and decodelist(l) or [] for l in d.splitlines()) |
|
81 | except: | |
|
81 | except ValueError: | |
|
82 | 82 | self._abort(error.ResponseError(_("unexpected response:"), d)) |
|
83 | 83 | return r |
|
84 | 84 |
General Comments 0
You need to be logged in to leave comments.
Login now