python get stack trace

43

python get stack trace -

# Basic syntax:
import traceback
try:
	your code here
except:
	print(traceback.format_exc())

Comments

Submit
0 Comments