Re-raise exception without chaining in Python

Use raise exc from None to remove parent exceptions.

Example:

try: # ...
except Exception ex1: # ...
    try: # ...
    except Exception ex2: # ...
        raise ex1 from None

Related:

References: