From 9d365849fa7255e673591b765f1fc4f3ca18f6a3 Mon Sep 17 00:00:00 2001 From: Riccardo Mori Date: Mon, 29 Apr 2024 17:51:10 +0200 Subject: [PATCH] [python] Use better error message --- bindings/python/quokka/program.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/quokka/program.py b/bindings/python/quokka/program.py index 1fb7049..a4ec901 100644 --- a/bindings/python/quokka/program.py +++ b/bindings/python/quokka/program.py @@ -322,7 +322,7 @@ def get_segment(self, address: AddressT) -> quokka.Segment: if segment.in_segment(address): return segment - raise KeyError(f"No segment has been found for address 0x{address}") + raise KeyError(f"No segment has been found for address {address:#x}") @cached_property def func_chunk_index(self) -> Dict[Index, List[quokka.Function]]: