mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	No longer need to be very careful with saving the exception state
first. Don't store the traceback as a local variable, to avoid circular references.
This commit is contained in:
		
							parent
							
								
									a3beb63eb7
								
							
						
					
					
						commit
						c90ad2103e
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -248,12 +248,11 @@ def handle_error(self, request, client_address): | ||||||
| 	The default is to print a traceback and continue. | 	The default is to print a traceback and continue. | ||||||
| 
 | 
 | ||||||
| 	""" | 	""" | ||||||
| 	exc, value, tb = sys.exc_type, sys.exc_value, sys.exc_traceback |  | ||||||
| 	print '-'*40 | 	print '-'*40 | ||||||
| 	print 'Exception happened during processing of request from', | 	print 'Exception happened during processing of request from', | ||||||
| 	print client_address | 	print client_address | ||||||
| 	import traceback | 	import traceback | ||||||
| 	traceback.print_exception(exc, value, tb) | 	traceback.print_exc() | ||||||
| 	print '-'*40 | 	print '-'*40 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum