Skip to content

Exception handling

surendrabisht edited this page Sep 22, 2020 · 2 revisions

Exception handling:

try:
    Business Logic here...
except:
    do something else when an error occurs
finally:
    # this block is always executed
    # regardless of exception generation.
    print('This is always executed')

Clone this wiki locally