mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
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>
This commit is contained in:
parent
8a99b2b817
commit
2fde5149d7
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user