mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
refactoring
This commit is contained in:
@@ -286,8 +286,8 @@ class Inotify:
|
||||
while True:
|
||||
try:
|
||||
return os.read(self.__fd, _EVENTS_BUFFER_LENGTH)
|
||||
except OSError as err:
|
||||
if err.errno == errno.EINTR:
|
||||
except OSError as ex:
|
||||
if ex.errno == errno.EINTR:
|
||||
pass
|
||||
|
||||
def __enter__(self) -> "Inotify":
|
||||
|
||||
Reference in New Issue
Block a user