瀏覽代碼

fix crash in lintChanges.py

Nick Mathewson 7 年之前
父節點
當前提交
b64c224362
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      scripts/maint/lintChanges.py

+ 4 - 1
scripts/maint/lintChanges.py

@@ -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())