Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

raise exception without traceback python

# I'm pretty sure that is impossible
# No matter how you raise your exception you will always get traceback

raise Exception('This is an exception')

# Console output:
# Traceback (most recent call last): (<<< --- THAT right there, is a Traceback!)
#  File "C:UsersadminDesktopCodeCats.py", line 1, in <module>
#    raise Exception('This is an exception')
 
PREVIOUS NEXT
Tagged: #raise #exception #traceback #python
ADD COMMENT
Topic
Name
1+3 =