Skip to content

Commit 3b60e43

Browse files
committed
Handle add_note in exc
1 parent a4292dd commit 3b60e43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/plugin_tests/test_chan_log.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
def test_format_exception_chain():
77
def _get_data(exc):
88
yield repr(exc)
9+
if hasattr(exc, 'add_note'):
10+
yield f" add_note = {exc.add_note!r}"
11+
912
yield f" args = {exc.args!r}"
1013
yield f" with_traceback = {exc.with_traceback!r}"
1114
yield ""

0 commit comments

Comments
 (0)