Skip to content

Commit

Permalink
romfs: catch generic exception, as kaitai struct uses generic exceptions
Browse files Browse the repository at this point in the history
in some cases instead of custom exceptions, see kaitai-io/kaitai_struct_python_runtime#41
  • Loading branch information
armijnhemel committed Apr 13, 2022
1 parent d77138e commit 8b69824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsers/filesystem/romfs/UnpackParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def parse(self):
# which is not available in Kaitai Struct.
try:
self.data = romfs.Romfs.from_io(self.infile)
except (UnicodeDecodeError, ValidationFailedError) as e:
except (UnicodeDecodeError, ValidationFailedError, Exception) as e:
raise UnpackParserException(e.args)

next_headers = set()
Expand Down

0 comments on commit 8b69824

Please sign in to comment.