One function

ParsedException in mahmoud/boltons

The author described this change as Fix multiline exception messages. It counts as a record because the check below fails on the code as it stood at 51ddb6c91 and passes on c4a489d85, with nothing else changed between the two runs.

Fix saved2015-04-20
Sharing licenceBSD-2-Clause · LICENSE
Change size+1 1

What the code was meant to do, written into the code itself as a docstring

Stores a parsed traceback and exception as would be typically output by :func:`sys.excepthook` or :func:`traceback.print_exception`. .. note: Does not currently store SyntaxError details such as column.

The change

106106 frames.append(frame_dict)
107107
108108 try:
109- exc_line = tb_lines[line_no]
109+ exc_line = '\n'.join(tb_lines[line_no:])
110110 exc_type, _, exc_msg = exc_line.partition(':')
111111 except Exception:
112112 exc_type, exc_msg = '', ''

The check that tells the two apart

failpass·tests/tbutils_test.py::test_multiline_exception_message

Check file tests/tbutils_test.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it51ddb6c9115260417a4178a7fa8212c5bcbb5e14
Broken version dated2015-04-20
Moduleboltons.tbutils
Units changedParsedException
Fingerprintde38bc481f8205eb
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in mahmoud/boltons