Exception handling in python

shape