From 9e00c7788499c03331d1de388311cdff41eb6e39 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 8 May 2015 14:28:49 +1000 Subject: [PATCH] Fixed variable name in JpegImagePlugin --- PIL/JpegImagePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/JpegImagePlugin.py b/PIL/JpegImagePlugin.py index 01a173b5b..e15042504 100644 --- a/PIL/JpegImagePlugin.py +++ b/PIL/JpegImagePlugin.py @@ -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