debug error view doesn't respect exc. suppress context (PEP 415) Description
debug error view doesn't respect exc. suppress context (PEP 415) Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). Consider the following view that raises an exception: class TestView(View): def get(self, request, args, kwargs): try: raise RuntimeError('my error') except…
The task
Consider the following view that raises an exception: class TestView(View): def get(self, request, *args, **kwargs): try: raise RuntimeError('my error') except Exception as exc: raise ValueError('my new error') from None Even though the raise is from None, unlike the traceback Python shows, the debug error view still…
Part of Lego-X/Lego-RL-SWE-Bench-Verified.