Try except Block

If except block is executed due to error the program should stopped there and do not execute finally block.

how i can do that.
def div(a,b):
try:
return a/b
if : except:
print(“Error!”)
# should stop here.
else finally:
print(“Executed successfull!”)

div(5,0)