Merge pull request #1219 from radarhere/jpeg_image_plugin

Fixed variable name in JpegImagePlugin
This commit is contained in:
Hugo 2015-05-08 11:51:33 +03:00
commit b4c8208e7e

View File

@ -704,7 +704,7 @@ def _save_cjpeg(im, fp, filename):
tempfile = im._dump()
subprocess.check_call(["cjpeg", "-outfile", filename, tempfile])
try:
os.unlink(file)
os.unlink(tempfile)
except:
pass