Python 2.6 compatibility

This commit is contained in:
wiredfool 2013-10-08 10:43:55 -07:00
parent a91283061e
commit e9b0b09b72

View File

@ -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)