micropython/tests/basics/exception_chain.py

7 lines
174 B
Python

# Exception chaining is not supported, but check that basic
# exception works as expected.
try:
raise Exception from None
except Exception:
print("Caught Exception")