##// END OF EJS Templates
clean up remaining generic exceptions
Matt Mackall -
r11122:2114e44b default
parent child Browse files
Show More
@@ -239,12 +239,12 b' def createlog(ui, directory=None, root="'
239 239 continue
240 240 match = re_01.match(line)
241 241 if match:
242 raise Exception(match.group(1))
242 raise logerror(match.group(1))
243 243 match = re_02.match(line)
244 244 if match:
245 raise Exception(match.group(2))
245 raise logerror(match.group(2))
246 246 if re_03.match(line):
247 raise Exception(line)
247 raise logerror(line)
248 248
249 249 elif state == 1:
250 250 # expect 'Working file' (only when using log instead of rlog)
@@ -112,7 +112,7 b' def patchedsize(orig, delta):'
112 112 outlen += length
113 113
114 114 if bin != binend:
115 raise Exception("patch cannot be decoded")
115 raise ValueError("patch cannot be decoded")
116 116
117 117 outlen += orig - last
118 118 return outlen
General Comments 0
You need to be logged in to leave comments. Login now