Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion oletools/ftguess.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def recognize(cls, ftg):
# parse content types, find content type of main part
try:
content_types = ftg.zipfile.read('[Content_Types].xml')
except RuntimeError:
except (RuntimeError, KeyError):
return False
# parse the XML content
# TODO: handle XML parsing exceptions
Expand Down