This commit is contained in:
Mitchel Humpherys 2017-05-03 19:42:48 +00:00 committed by GitHub
commit 8385bf7344

View File

@ -541,7 +541,7 @@ class ImageFileDirectory_v2(collections.MutableMapping):
dest = self._tags_v1 if legacy_api else self._tags_v2 dest = self._tags_v1 if legacy_api else self._tags_v2
if info.length == 1: if info.length == 1 and len(values) > 0:
if legacy_api and self.tagtype[tag] in [5, 10]: if legacy_api and self.tagtype[tag] in [5, 10]:
values = values, values = values,
dest[tag], = values dest[tag], = values