mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-01 00:17:27 +03:00 
			
		
		
		
	Merge pull request #1131 from mixcloud/gd-unbound-local-variable
Fix UnboundLocalError in ImageFile
This commit is contained in:
		
						commit
						4308872809
					
				|  | @ -196,6 +196,9 @@ class ImageFile(Image.Image): | |||
|             except AttributeError: | ||||
|                 prefix = b"" | ||||
| 
 | ||||
|             # Buffer length read; assign a default value | ||||
|             t = 0 | ||||
| 
 | ||||
|             for d, e, o, a in self.tile: | ||||
|                 d = Image._getdecoder(self.mode, d, a, self.decoderconfig) | ||||
|                 seek(o) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user