Unverified Commit 24126b42 by jmorrill Committed by GitHub

Fix parsing of different exception string formats (#4785)

parent 69149635
......@@ -205,8 +205,9 @@ def _find_error_type(line):
return None
start_pos = line.rfind(":", 0, end_pos)
if start_pos == -1:
return None
err_name = line[start_pos + 1 : end_pos].strip()
err_name = line[:end_pos].strip()
else:
err_name = line[start_pos + 1 : end_pos].strip()
if _valid_error_name(err_name):
return err_name
return None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment