diff options
author | Tom Tromey <tromey@adacore.com> | 2024-03-19 10:24:41 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-04-02 10:58:37 -0600 |
commit | 2fde5149d735c9a7faf3efc0fc38e47744263466 (patch) | |
tree | b1e28e4200540dab8dbbc64f6737f929b10e4990 /gdb/python | |
parent | 8a99b2b8174b8636ea74e6eb57c4fae8b7a1c626 (diff) | |
download | binutils-2fde5149d735c9a7faf3efc0fc38e47744263466.zip binutils-2fde5149d735c9a7faf3efc0fc38e47744263466.tar.gz binutils-2fde5149d735c9a7faf3efc0fc38e47744263466.tar.bz2 |
Fix flake8 errors in dap/server.py
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>
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/lib/gdb/dap/server.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/lib/gdb/dap/server.py b/gdb/python/lib/gdb/dap/server.py index cba5a30..70646f4 100644 --- a/gdb/python/lib/gdb/dap/server.py +++ b/gdb/python/lib/gdb/dap/server.py @@ -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() |