class skipItertionException(Exception): pass def callSkipFunction(): raise skipItertionException("Skip the iteration")