Mercurial > public > mercurial-scm > hg
diff hgext/convert/hg.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 | e34106fa0dc3 |
children | 1093ad1e8903 |
line wrap: on
line diff
--- a/hgext/convert/hg.py Sat May 12 16:02:45 2012 +0200 +++ b/hgext/convert/hg.py Sat May 12 16:02:46 2012 +0200 @@ -95,7 +95,7 @@ self.after() try: self.repo = hg.repository(self.ui, branchpath) - except: + except Exception: self.repo = hg.repository(self.ui, branchpath, create=True) self.before() @@ -105,7 +105,7 @@ for b in pbranches: try: self.repo.lookup(b[0]) - except: + except Exception: missings.setdefault(b[1], []).append(b[0]) if missings: @@ -192,7 +192,7 @@ try: oldlines = sorted(parentctx['.hgtags'].data().splitlines(True)) - except: + except Exception: oldlines = [] newlines = sorted([("%s %s\n" % (tags[tag], tag)) for tag in tags])