]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix flake8 errors in dap/server.py
authorTom Tromey <tromey@adacore.com>
Tue, 19 Mar 2024 16:24:41 +0000 (10:24 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 2 Apr 2024 16:58:37 +0000 (10:58 -0600)
Commit 032d23a6 ("Fix stray KeyboardInterrupt after cancel")
introduced some errors into dap/server.py.  A function is called but
not imported, and the wrong variable name is used.  This patch
corrects both errors.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/python/lib/gdb/dap/server.py

index cba5a308ff12371753d88e268979cacee2bdb53d..70646f4d75c5c7192c8be5c64bc7adcdaee4df1e 100644 (file)
@@ -32,6 +32,7 @@ from .startup import (
     log,
     log_stack,
     LogLevel,
+    thread_log,
 )
 from .typecheck import type_check
 
@@ -478,7 +479,7 @@ class Cancellable(object):
                 pass
             else:
                 # Exception happened.  Ignore and log it.
-                err_string = "%s, %s" % (err, type(err))
+                err_string = "%s, %s" % (e, type(e))
                 thread_log("caught exception: " + err_string)
                 log_stack()