Improve parsing of faulthandler logs.

This commit is contained in:
Florian Bruhin 2015-02-19 21:38:02 +01:00
parent 543c6cb90b
commit 2d4b03fbc9

View File

@ -52,7 +52,7 @@ def parse_fatal_stacktrace(text):
lines = [ lines = [
r'Fatal Python error: (.*)', r'Fatal Python error: (.*)',
r' *', r' *',
r'Current thread [^ ]* \(most recent call first\): *', r'(Current )?[Tt]hread [^ ]* \(most recent call first\): *',
r' File ".*", line \d+ in (.*)', r' File ".*", line \d+ in (.*)',
] ]
m = re.match('\n'.join(lines), text) m = re.match('\n'.join(lines), text)