mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +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')
|
||||
continue
|
||||
|
||||
except (Exception, msg):
|
||||
except Exception as msg:
|
||||
# if we don't have an ifd here, just punt.
|
||||
if Image.DEBUG:
|
||||
print (msg)
|
||||
|
|
Loading…
Reference in New Issue
Block a user