python get stack trace

34

python get stack trace -

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

Comments

Submit
0 Comments