Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to nest try/except statements

try:
    code a
except ExplicitException:
    pass

try:
    code b
except ExplicitException:
    try:
        code c
    except ExplicitException:
        try:
            code d
        except ExplicitException:
            pass
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nest #statements
ADD COMMENT
Topic
Name
1+2 =