diff --git a/PIL/TiffImagePlugin.py b/PIL/TiffImagePlugin.py index 6f9c0f52a..220812ffe 100644 --- a/PIL/TiffImagePlugin.py +++ b/PIL/TiffImagePlugin.py @@ -1098,7 +1098,7 @@ def _save(im, fp, filename): atts[k] = v[0] continue if isStringType(v): - atts[k] = v.encode('ascii', errors='ignore') + atts[k] = v.encode('ascii', 'ignore') continue except Exception as msg: