mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
lint fix
This commit is contained in:
parent
8b2a2eb731
commit
400021fc81
@ -164,8 +164,8 @@ class BaseDeviceProcess(multiprocessing.Process): # pylint: disable=too-many-in
|
|||||||
except Exception as err:
|
except Exception as err:
|
||||||
if isinstance(err, OSError) and (
|
if isinstance(err, OSError) and (
|
||||||
# https://github.com/raspberrypi/linux/commit/61b7f805dc2fd364e0df682de89227e94ce88e25
|
# https://github.com/raspberrypi/linux/commit/61b7f805dc2fd364e0df682de89227e94ce88e25
|
||||||
err.errno == errno.EAGAIN
|
err.errno == errno.EAGAIN # pylint: disable=no-member
|
||||||
or err.errno == errno.ESHUTDOWN
|
or err.errno == errno.ESHUTDOWN # pylint: disable=no-member
|
||||||
):
|
):
|
||||||
logger.debug("HID-%s busy/unplugged (write): %s: %s",
|
logger.debug("HID-%s busy/unplugged (write): %s: %s",
|
||||||
self.__name, type(err).__name__, err)
|
self.__name, type(err).__name__, err)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user