diff mercurial/hg.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 4d875bb546dc
children 36a3016811d1
line wrap: on
line diff
--- a/mercurial/hg.py	Sun May 13 13:17:50 2012 +0200
+++ b/mercurial/hg.py	Sun May 13 13:18:06 2012 +0200
@@ -203,7 +203,7 @@
         else:
             ui.debug("copied %d files\n" % num)
         return destlock
-    except:
+    except: # re-raises
         release(destlock)
         raise