Initialize raw_iptc prior to try/except

This commit is contained in:
tudacs
2018-12-18 15:16:05 +01:00
parent 4f7eb0548b
commit a65a3de12c

View File

@@ -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.