[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] fix crash in lintChanges.py



commit b64c22436216d92e2dc2d3754e121713e0a1f69f
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Thu Sep 22 08:33:09 2016 -0400

    fix crash in lintChanges.py
---
 scripts/maint/lintChanges.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/maint/lintChanges.py b/scripts/maint/lintChanges.py
index 0b8c5e5..b63a4eb 100755
--- a/scripts/maint/lintChanges.py
+++ b/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())
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits