mirror of
				https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
				synced 2025-11-04 03:55:05 +00:00 
			
		
		
		
	lint fix for #11492
This commit is contained in:
		
							parent
							
								
									d78377ea5d
								
							
						
					
					
						commit
						7a7fa25d02
					
				@ -661,7 +661,7 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i
 | 
			
		||||
            try:
 | 
			
		||||
                # Resizing image with LANCZOS could throw an exception if e.g. image mode is I;16
 | 
			
		||||
                image = image.resize(resize_to, LANCZOS)
 | 
			
		||||
            except:
 | 
			
		||||
            except Exception:
 | 
			
		||||
                image = image.resize(resize_to)
 | 
			
		||||
        try:
 | 
			
		||||
            _atomically_save_image(image, fullfn_without_extension, ".jpg")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user