Fix package.py error handling bug (#39017)
This commit is contained in:
		@@ -1256,7 +1256,6 @@ def make_stack(tb, stack=None):
 | 
				
			|||||||
            func = getattr(obj, tb.tb_frame.f_code.co_name, "")
 | 
					            func = getattr(obj, tb.tb_frame.f_code.co_name, "")
 | 
				
			||||||
            if func:
 | 
					            if func:
 | 
				
			||||||
                typename, *_ = func.__qualname__.partition(".")
 | 
					                typename, *_ = func.__qualname__.partition(".")
 | 
				
			||||||
 | 
					 | 
				
			||||||
                if isinstance(obj, CONTEXT_BASES) and typename not in basenames:
 | 
					                if isinstance(obj, CONTEXT_BASES) and typename not in basenames:
 | 
				
			||||||
                    break
 | 
					                    break
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user