Skip to content

Commit

Permalink
fix for issue #45
Browse files Browse the repository at this point in the history
  • Loading branch information
ianare committed Feb 3, 2015
1 parent e5a6ced commit 3117a77
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions exifread/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,11 @@ def dump_ifd(self, ifd, ifd_name, tag_dict=EXIF_TAGS, relative=0, stop_tag=DEFAU
printable = tag_entry[1](values)
elif type(tag_entry[1]) is tuple:
ifd_info = tag_entry[1]
logger.debug('%s SubIFD at offset %d:', ifd_info[0], values[0])
self.dump_ifd(values[0], ifd_info[0], tag_dict=ifd_info[1], stop_tag=stop_tag)
try:
logger.debug('%s SubIFD at offset %d:', ifd_info[0], values[0])
self.dump_ifd(values[0], ifd_info[0], tag_dict=ifd_info[1], stop_tag=stop_tag)
except IndexError:
logger.warn('No values found for %s SubIFD', ifd_info[0])
else:
printable = ''
for i in values:
Expand Down

0 comments on commit 3117a77

Please sign in to comment.