]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix crash in lintChanges.py
authorNick Mathewson <nickm@torproject.org>
Thu, 22 Sep 2016 12:33:09 +0000 (08:33 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 22 Sep 2016 12:33:09 +0000 (08:33 -0400)
scripts/maint/lintChanges.py

index 0b8c5e5d2e64ef3acb65835aaa697d226ccdd9d4..b63a4eb3a1db4f92da54936bea62e3515500ea54 100755 (executable)
@@ -55,7 +55,10 @@ def lintfile(fname):
            '(' not in m.group(2)):
         warn("Missing subcategory on %s"%m.group(1))
 
-    isBug = ("bug" in m.group(1).lower() or "fix" in m.group(1).lower())
+    if m:
+        isBug = ("bug" in m.group(1).lower() or "fix" in m.group(1).lower())
+    else:
+        isBug = False
 
     contents = " ".join(contents.split())