https://stackoverflow.com/questions/24752395/python-raise-from-usage - об использовании raise from
#exception #raise
#exception #raise
Stack Overflow
Python "raise from" usage
What's the difference between raise and raise from in Python?
try:
raise ValueError
except Exception as e:
raise IndexError
which yields
Traceback (most recent call last):
File "tmp.py"...
try:
raise ValueError
except Exception as e:
raise IndexError
which yields
Traceback (most recent call last):
File "tmp.py"...