mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-23 20:03:31 +01:00
fix crash in lintChanges.py
This commit is contained in:
parent
f6d7b71719
commit
b64c224362
@ -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())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user