Skip to content

Commit a903462

Browse files
Knioianare
authored andcommitted
ignore boxes to get exif from iphone files
1 parent 02f6762 commit a903462

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

exifread/heic.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,12 @@ def _parse_meta(self, meta: Box):
188188
self.get_full(meta)
189189
while self.file_handle.tell() < meta.after:
190190
box = self.next_box()
191-
psub = self.get_parser(box)
192-
if psub is not None:
191+
192+
try:
193+
psub = self.get_parser(box)
193194
psub(box)
194195
meta.subs[box.name] = box
195-
else:
196+
except NoParser as e:
196197
logger.debug('HEIC: skipping %r', box)
197198
# skip any unparsed data
198199
self.skip(box)

0 commit comments

Comments
 (0)