Skip to content

Commit 5c9adb8

Browse files
committed
Remove f-string from DAP
One more f-string snuck into the DAP code, in breakpoint.py. Most of them were removed here: https://sourceware.org/pipermail/gdb-patches/2023-June/200023.html but I think this one landed after that patch. While DAP only supports Python 3.5 and later, f-strings were added in 3.6, so remove this. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30708
1 parent 30baee6 commit 5c9adb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gdb/python/lib/gdb/dap/breakpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def _catch_exception(filterId, **args):
352352
if filterId in ("assert", "exception", "throw", "rethrow", "catch"):
353353
cmd = "-catch-" + filterId
354354
else:
355-
raise Exception(f"Invalid exception filterID: {filterId}")
355+
raise Exception("Invalid exception filterID: " + str(filterId))
356356
result = gdb.execute_mi(cmd)
357357
# A little lame that there's no more direct way.
358358
for bp in gdb.breakpoints():

0 commit comments

Comments
 (0)