From f2d4d19cc4e6615b1f4001104766d6d39f640ce4 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 21 Oct 2018 17:16:17 +1100 Subject: [PATCH] Undefined name --- src/PIL/IcnsImagePlugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PIL/IcnsImagePlugin.py b/src/PIL/IcnsImagePlugin.py index 07ffad20d..d156b240f 100644 --- a/src/PIL/IcnsImagePlugin.py +++ b/src/PIL/IcnsImagePlugin.py @@ -333,6 +333,7 @@ def _save(im, fp, filename): provided_images = {im.width: im for im in im.encoderinfo.get("append_images", [])} last_w = None + second_path = None for w in [16, 32, 128, 256, 512]: prefix = 'icon_{}x{}'.format(w, w)