after every raise exception there was ````return None```` which was of no use and also creates the problem in auto indentation