mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	call err_clear in err_setval
This commit is contained in:
		
							parent
							
								
									030ae17582
								
							
						
					
					
						commit
						c054a663eb
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -72,11 +72,11 @@ err_setval(exception, value) | |||
| 	object *exception; | ||||
| 	object *value; | ||||
| { | ||||
| 	XDECREF(last_exception); | ||||
| 	err_clear(); | ||||
| 
 | ||||
| 	XINCREF(exception); | ||||
| 	last_exception = exception; | ||||
| 	 | ||||
| 	XDECREF(last_exc_val); | ||||
| 	XINCREF(value); | ||||
| 	last_exc_val = value; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum