Don't store the traceback object in a local variable.
This code was correct, because of the outer try/finally that set tb to None. This change localizes the handling of the traceback, so that it's safety can be determined by local inspection.
Showing
Please register or sign in to comment