Handling all errors

i want to stop execution of current process if any type of error generate like (throw validation error)

Use a try and except construct, and just do a simple return. Again, this all errors means using this:

 except Exception as e:

which is not okay. Try and figure out those errors by testing all possible cases. Use log as mentioned here and check them:

thanks i will try and let you know.