Skip to content

Commit

Permalink
HEIC Unknown Parsers (#153)
Browse files Browse the repository at this point in the history
This is for HEIC handler raising a KeyError instead of an IndexError
when it comes to handling unknown parsers.
  • Loading branch information
paulbarton90 authored Feb 17, 2022
1 parent a98740d commit 11600ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exifread/heic.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def get_parser(self, box: Box) -> Callable:
}
try:
return defs[box.name]
except IndexError as err:
except (IndexError, KeyError) as err:
raise NoParser(box.name) from err

def parse_box(self, box: Box) -> Box:
Expand Down

0 comments on commit 11600ec

Please sign in to comment.