Traceback (most recent call last):
  File "example.py", line 2, in <module>
    x > 3
    ^
NameError: name 'x' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "example.py", line 4, in <module>
    raise Exception("Something went wrong")
Exception: Something went wrong