mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Python 2.6 compatibility
This commit is contained in:
		
							parent
							
								
									a91283061e
								
							
						
					
					
						commit
						e9b0b09b72
					
				|  | @ -1101,7 +1101,7 @@ def _save(im, fp, filename): | ||||||
|                         atts[k] = v.encode('ascii', errors='ignore') |                         atts[k] = v.encode('ascii', errors='ignore') | ||||||
|                         continue |                         continue | ||||||
| 
 | 
 | ||||||
|         except (Exception, msg): |         except Exception as msg: | ||||||
|             # if we don't have an ifd here, just punt. |             # if we don't have an ifd here, just punt. | ||||||
|             if Image.DEBUG: |             if Image.DEBUG: | ||||||
|                 print (msg) |                 print (msg) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user