Skip to content

Commit

Permalink
Fix another crash in dp.module.find
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexodia committed Jan 6, 2023
1 parent 2aa81ea commit 8767647
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dumpulator/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ def add(self, pe: pefile.PE, path: str):
def find(self, key: Union[str, int]) -> Optional[Module]:
if isinstance(key, int):
region = self._memory.find_region(key)
if region is not None and region.info:
assert isinstance(region.info, Module)
if region is not None and isinstance(region.info, Module):
return region.info
return None
if isinstance(key, str):
Expand Down

0 comments on commit 8767647

Please sign in to comment.