Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #324 from CybercentreCanada/bugfix/catch-attr
Browse files Browse the repository at this point in the history
Catch AttributeError when parsing DLLs
  • Loading branch information
cccs-kevin authored Mar 29, 2023
2 parents bbb3eeb + 6f1d4cb commit 7f4b232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cuckoo/cuckoo_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ def _create_pe_from_file_contents(self) -> PE:
dll_parsed = None
try:
dll_parsed = PE(data=self.request.file_contents)
except PEFormatError as e:
except (PEFormatError, AttributeError) as e:
self.log.warning(f"Could not parse PE file due to {safe_str(e)}")
return dll_parsed

Expand Down

0 comments on commit 7f4b232

Please sign in to comment.