From a65a3de12cf4d19160fc8cd5992525ff99463ec9 Mon Sep 17 00:00:00 2001 From: tudacs Date: Tue, 18 Dec 2018 15:16:05 +0100 Subject: [PATCH] Initialize raw_iptc prior to try/except --- sigal/image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sigal/image.py b/sigal/image.py index 07e8bcd..d242a23 100644 --- a/sigal/image.py +++ b/sigal/image.py @@ -238,6 +238,7 @@ def get_iptc_data(filename): logger = logging.getLogger(__name__) iptc_data = {} + raw_iptc = {} # PILs IptcImagePlugin issues a SyntaxError in certain circumstances # with malformed metadata, see PIL/IptcImagePlugin.py", line 71.