How can I get the full traceback of an error, including file name, fun
How can I get the full traceback of an error, including file name, function name and line number without raising it?
except Exception as e:print(e) will only print the text of the error

Rijwan AnsariRank #82 · 24.2K reputationPosted Mar 23, 2021, 9:14 AM EDT
Kiran MohantyRank #821 · 2.8K reputationPosted Mar 23, 2021, 6:09 AM EDT
Rajanikant HawaldarRank #110 · 20.3K reputationPosted Mar 24, 2021, 2:39 AM EDT