mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Fix tcl/tk loading error handling
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
This commit is contained in:
		
							parent
							
								
									da39e4e38e
								
							
						
					
					
						commit
						2cc40cc7f4
					
				| 
						 | 
				
			
			@ -363,7 +363,7 @@ load_tkinter_funcs(void) {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    free(hMods);
 | 
			
		||||
    if (found_tcl != 1) {
 | 
			
		||||
    if (found_tcl == 0) {
 | 
			
		||||
        PyErr_SetString(PyExc_RuntimeError, "Could not find Tcl routines");
 | 
			
		||||
    } else if (found_tk == 0) {
 | 
			
		||||
        PyErr_SetString(PyExc_RuntimeError, "Could not find Tk routines");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user