diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-09-22 08:33:09 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-22 08:33:09 -0400 |
commit | b64c22436216d92e2dc2d3754e121713e0a1f69f (patch) | |
tree | 9f4bac993a5ab640acd4bfd01470e2e5a7961620 /scripts | |
parent | f6d7b71719db2e158b28f21d6f4a3861d860b3b0 (diff) | |
download | tor-b64c22436216d92e2dc2d3754e121713e0a1f69f.tar.gz tor-b64c22436216d92e2dc2d3754e121713e0a1f69f.zip |
fix crash in lintChanges.py
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/maint/lintChanges.py | 5 |
1 files changed, 4 insertions, 1 deletions
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()) |