loguru/tests/exceptions/output/diagnose/chained_both.txt

48 lines
2.0 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Traceback (most recent call last):
File "tests/exceptions/source/diagnose/chained_both.py", line 15, in cause
div(x, y)
│ │ └ 0
│ └ 1
└ <function div at 0xDEADBEEF>
File "tests/exceptions/source/diagnose/chained_both.py", line 10, in div
x / y
│ └ 0
└ 1
ZeroDivisionError: division by zero
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tests/exceptions/source/diagnose/chained_both.py", line 22, in context
cause(x, y)
│ │ └ 0
│ └ 1
└ <function cause at 0xDEADBEEF>
File "tests/exceptions/source/diagnose/chained_both.py", line 17, in cause
raise ValueError("Division error")
ValueError: Division error
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "tests/exceptions/source/diagnose/chained_both.py", line 28, in <module>
context(1, 0)
└ <function context at 0xDEADBEEF>
File "tests/exceptions/source/diagnose/chained_both.py", line 24, in context
raise ValueError("Cause error") from e
ValueError: Cause error