django__django-13513
debug error view doesn't respect exc.__suppress_context__ (PEP 415)
Verdict: the fix is stated in the issue (Tier A).
Instead, it should be something more like (simplifying also for Python 3): def explicit_or_implicit_cause(exc_value): return ( exc_value.__cause__ or (None if exc_value.__suppress_context__ else exc_value.__context__) )
The text states the fix: “Instead, it should be something more like (simplifying also for Python 3): def explicit_or_implicit_cause(exc_value): return ( exc_value.__cause__ or (None if exc_value.…”
All SWE-bench Verified tasks · more django/django tasks · How the check works