contrib/check-code.py
changeset 14005 bb391e0515ba
parent 13748 26f8844d1757
child 14009 64de9ca66511
--- a/contrib/check-code.py	Sat Apr 23 00:51:25 2011 +0300
+++ b/contrib/check-code.py	Sat Apr 23 00:52:21 2011 +0300
@@ -150,6 +150,7 @@
     (r'[^+=*!<>&| -](\s=|=\s)[^= ]',
      "wrong whitespace around ="),
     (r'raise Exception', "don't raise generic exceptions"),
+    (r'^\s*except:$', "warning: naked except clause"),
     (r'ui\.(status|progress|write|note|warn)\([\'\"]x',
      "warning: unwrapped ui message"),
     (r' is\s+(not\s+)?["\'0-9-]', "object comparison with literal"),