diff contrib/shrink-revlog.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 d76b9abd1509
children d6d0f1ed8ebb
line wrap: on
line diff
--- a/contrib/shrink-revlog.py	Sun May 13 13:17:50 2012 +0200
+++ b/contrib/shrink-revlog.py	Sun May 13 13:18:06 2012 +0200
@@ -240,7 +240,7 @@
             writerevs(ui, r1, r2, order, tr)
             report(ui, r1, r2)
             tr.close()
-        except:
+        except: # re-raises
             # Abort transaction first, so we truncate the files before
             # deleting them.
             tr.abort()