clean up remaining generic exceptions

This commit is contained in:
Matt Mackall 2010-05-07 16:59:00 -05:00
parent 21d3c16701
commit f37d605b14
2 changed files with 4 additions and 4 deletions

View File

@ -239,12 +239,12 @@ def createlog(ui, directory=None, root="", rlog=True, cache=None):
continue
match = re_01.match(line)
if match:
raise Exception(match.group(1))
raise logerror(match.group(1))
match = re_02.match(line)
if match:
raise Exception(match.group(2))
raise logerror(match.group(2))
if re_03.match(line):
raise Exception(line)
raise logerror(line)
elif state == 1:
# expect 'Working file' (only when using log instead of rlog)

View File

@ -112,7 +112,7 @@ def patchedsize(orig, delta):
outlen += length
if bin != binend:
raise Exception("patch cannot be decoded")
raise ValueError("patch cannot be decoded")
outlen += orig - last
return outlen