Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python capture exception

# Basic syntax:
import traceback
try:
	your code here
except:
	print(traceback.format_exc())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #capture #exception
ADD COMMENT
Topic
Name
4+7 =