From 7d092564ead06aa28678855dddc286988383069c Mon Sep 17 00:00:00 2001 From: ValekoZ Date: Fri, 27 Sep 2024 14:26:35 +0200 Subject: [PATCH] fix nits --- gef.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gef.py b/gef.py index 9b0dd4b73..2a6312ae8 100644 --- a/gef.py +++ b/gef.py @@ -10750,9 +10750,9 @@ def read_cstring(self, res_bytes += self.read(current_address, size) current_address += size - except: + except gdb.error: if not res_bytes: - err(f"Can't read memory at '{address}'") + err(f"Can't read memory at '{address:#x}'") return "" break try: