##// END OF EJS Templates
wireproto: catch possible cast error in pushkey...
David Soria Parra -
r13450:b3f9af7c stable
parent child Browse files
Show More
@@ -80,7 +80,12 b' class wirerepository(repo.repository):'
80 80 key=encoding.fromlocal(key),
81 81 old=encoding.fromlocal(old),
82 82 new=encoding.fromlocal(new))
83 return bool(int(d))
83 try:
84 d = bool(int(d))
85 except ValueError:
86 raise error.ResponseError(
87 _('push failed (unexpected response):'), d)
88 return d
84 89
85 90 def listkeys(self, namespace):
86 91 if not self.capable('pushkey'):
General Comments 0
You need to be logged in to leave comments. Login now