Needs a preserved traceback:

    try:
        ...
    except IndexError:
        import sys
        err, val, tb = sys.exc_info()
        raise IndexError('...'), None, tb