Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumPythoncontextmanagerSingle-choice MCQ

What does this contextmanager do with the raised exception?

from contextlib import contextmanager @contextmanager def cm(): try: yield except ValueError: print("caught") with cm(): raise ValueError("x") print("after")