hgext/convert/hg.py
changeset 16689 f366d4c2ff34
parent 16687 e34106fa0dc3
child 16867 1093ad1e8903
--- 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])