3 ms·
Yes, the article doesn't mention this but indeed, in Python you can explicitly chain exceptions, which changes the message into "The above exception was the dir
by vanschelven 2y ago
Yes, the article doesn't mention this but indeed, in Python you can explicitly chain exceptions, which changes the message into "The above exception was the direct cause of the following exception:"
You can also disable this behavior using the `from None` syntax.
https://docs.python.org/3/tutorial/errors.html#exception-chaining https://docs.python.org/3/tutorial/errors.html#exception-cha...