diff mercurial/localrepo.py @ 16705:c2d9ef43ff6c

check-code: ignore naked excepts with a "re-raise" comment This also promotes the naked except check from a warning to an error.
author Brodie Rao <brodie@sf.io>
date Sun, 13 May 2012 13:18:06 +0200
parents d947e1da1259
children a270ec977ba6
line wrap: on
line diff
--- a/mercurial/localrepo.py	Sun May 13 13:17:50 2012 +0200
+++ b/mercurial/localrepo.py	Sun May 13 13:18:06 2012 +0200
@@ -1180,7 +1180,7 @@
                 self.hook("precommit", throw=True, parent1=hookp1,
                           parent2=hookp2)
                 ret = self.commitctx(cctx, True)
-            except:
+            except: # re-raises
                 if edited:
                     self.ui.write(
                         _('note: commit message saved in %s\n') % msgfn)