Explicit Cause Chaining
class ConfigError(Exception):
pass
def load():
try:
int("not a number")
except ValueError as e:
raise ConfigError("bad config") from e
load()
This crashes. Which best describes the traceback Python prints?
Sign in to answer questions and track your progress
Sign In