We have a following code in Python
def function1() ........... raise Exception .. ............... return 0
Robot script: