Python Forum
Pythonn 3 getting the __traceback__attribute of an exception
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pythonn 3 getting the __traceback__attribute of an exception
#2
Use
if __name__ == '__main__':
    try:
        essai()
    except Exception as exc:
        t = exc.__traceback__
        print(t)
Reply


Messages In This Thread
RE: Pythonn 3 getting the __traceback__attribute of an exception - by Gribouillis - Nov-11-2019, 04:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  During handling of the above exception, another exception occurred Skaperen 7 26,948 Dec-21-2018, 10:58 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020