diff options
Diffstat (limited to 'kvmd/inotify.py')
-rw-r--r-- | kvmd/inotify.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/inotify.py b/kvmd/inotify.py index c70ec465..302dd006 100644 --- a/kvmd/inotify.py +++ b/kvmd/inotify.py @@ -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": |