The Python Oracle

How to get the name of an exception that was caught in Python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Civilization

--

Chapters
00:00 Question
00:32 Accepted answer (Score 348)
01:04 Answer 2 (Score 16)
01:45 Answer 3 (Score 11)
02:02 Answer 4 (Score 10)
02:28 Thank you

--

Full question
https://stackoverflow.com/questions/1817...

Answer 1 links:
[MB's awesome answer]: https://stackoverflow.com/a/13653312/540...

Answer 3 links:
https://docs.python.org/3/library/sys.ht...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #exception

#avk47