Skip to content

Commit 39f13bd

Browse files
committed
bring back try-catch for typo like error
1 parent c10e5e0 commit 39f13bd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

qiling/debugger/qdb/qdb.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,11 @@ def do_examine(self: QlQdb, line: str) -> None:
302302
e.g. x/4wx 0x41414141 , print 4 word size begin from address 0x41414141 in hex
303303
"""
304304

305-
if type(err_msg := examine_mem(self.ql, line)) is str:
306-
print(f"{color.RED}[!] {err_msg} ...{color.END}")
305+
try:
306+
if type(err_msg := examine_mem(self.ql, line)) is str:
307+
print(f"{color.RED}[!] {err_msg} ...{color.END}")
308+
except:
309+
print(f"{color.RED}[!] something went wrong ...{color.END}")
307310

308311
def do_show(self: QlQdb, *args) -> None:
309312
"""

0 commit comments

Comments
 (0)