Mercurial > public > mercurial-scm > hg
diff mercurial/verify.py @ 16689:f366d4c2ff34
cleanup: replace naked excepts with except Exception: ...
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sat, 12 May 2012 16:02:46 +0200 |
parents | 743cc738f704 |
children | b32a30da608d |
line wrap: on
line diff
--- a/mercurial/verify.py Sat May 12 16:02:45 2012 +0200 +++ b/mercurial/verify.py Sat May 12 16:02:46 2012 +0200 @@ -87,7 +87,7 @@ # attempt to filter down to real linkrevs linkrevs = [l for l in linkrevs if lrugetctx(l)[f].filenode() == node] - except: + except Exception: pass warn(_(" (expected %s)") % " ".join(map(str, linkrevs))) lr = None # can't be trusted @@ -189,7 +189,7 @@ try: fl = repo.file(f) lr = min([fl.linkrev(fl.rev(n)) for n in filenodes[f]]) - except: + except Exception: lr = None err(lr, _("in manifest but not in changeset"), f)