You can pass one exception to another:
exc = StopIteration('Iterator has already exhaused!') try: raise ValueError, exc except ValueError, e: print e.args[0]
A good practical application of this still eludes me, although there must be some.
source share