Skip to content

Commit 11600ec

Browse files
authored
HEIC Unknown Parsers (#153)
This is for HEIC handler raising a KeyError instead of an IndexError when it comes to handling unknown parsers.
1 parent a98740d commit 11600ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exifread/heic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def get_parser(self, box: Box) -> Callable:
169169
}
170170
try:
171171
return defs[box.name]
172-
except IndexError as err:
172+
except (IndexError, KeyError) as err:
173173
raise NoParser(box.name) from err
174174

175175
def parse_box(self, box: Box) -> Box:

0 commit comments

Comments
 (0)