Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

exception get line number python

import traceback

try:
    print(4/0)
except ZeroDivisionError:
    print(traceback.format_exc())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #exception #line #number #python
ADD COMMENT
Topic
Name
5+5 =