mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 05:06:49 +03:00
Another python 2.6 detail
This commit is contained in:
parent
e9b0b09b72
commit
08347569b5
|
@ -1098,7 +1098,7 @@ def _save(im, fp, filename):
|
||||||
atts[k] = v[0]
|
atts[k] = v[0]
|
||||||
continue
|
continue
|
||||||
if isStringType(v):
|
if isStringType(v):
|
||||||
atts[k] = v.encode('ascii', errors='ignore')
|
atts[k] = v.encode('ascii', 'ignore')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
except Exception as msg:
|
except Exception as msg:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user