Skip to content

Commit

Permalink
fixed exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
burhanr13 committed Jul 19, 2024
1 parent 17c7fa1 commit 336b4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patcherex2/components/binary_analyzers/ghidra.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def mem_addr_to_file_offset(self, addr: int) -> int:
self.currentProgram.getMemory().getAddressSourceInfo(addr).getFileOffset()
)
except Exception:
raise Exception(f"Can't get file offset for {hex(addr)}")
raise Exception("Can't get file offset for addr")

def get_basic_block(self, addr: int) -> dict[str, int | list[int]]:
logger.info(f"getting basic block at 0x{addr} with ghidra")
Expand Down

0 comments on commit 336b4c1

Please sign in to comment.