Closed define-private-public closed 7 years ago
re.match() will return a None if it doesn't find any matches. So calling None.groups() will result in an error. This change will skip that iteration if it doesn't find any matches.
re.match()
None
None.groups()
re.match()
will return aNone
if it doesn't find any matches. So callingNone.groups()
will result in an error. This change will skip that iteration if it doesn't find any matches.