From: Nick Mathewson Date: Thu, 22 Sep 2016 12:33:09 +0000 (-0400) Subject: fix crash in lintChanges.py X-Git-Tag: tor-0.2.9.3-alpha~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b64c22436216d92e2dc2d3754e121713e0a1f69f;p=thirdparty%2Ftor.git fix crash in lintChanges.py --- diff --git a/scripts/maint/lintChanges.py b/scripts/maint/lintChanges.py index 0b8c5e5d2e..b63a4eb3a1 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())