summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpython2/pyinotify.py5
-rwxr-xr-xpython3/pyinotify.py5
2 files changed, 6 insertions, 4 deletions
diff --git a/python2/pyinotify.py b/python2/pyinotify.py
index f4e3ae4..8954802 100755
--- a/python2/pyinotify.py
+++ b/python2/pyinotify.py
@@ -1321,8 +1321,9 @@ class Notifier:
# Not really sure how we ended up here, nor how we should
# handle these types of events and if it is appropriate to
# completly skip them (like we are doing here).
- log.warning("Unable to retrieve Watch object associated to %s",
- repr(raw_event))
+ if not (raw_event.mask & IN_IGNORED):
+ log.warning("Unable to retrieve Watch object associated to %s",
+ repr(raw_event))
continue
revent = self._sys_proc_fun(raw_event) # system processings
if watch_ and watch_.proc_fun:
diff --git a/python3/pyinotify.py b/python3/pyinotify.py
index 4d005ed..05b2846 100755
--- a/python3/pyinotify.py
+++ b/python3/pyinotify.py
@@ -1267,8 +1267,9 @@ class Notifier:
# Not really sure how we ended up here, nor how we should
# handle these types of events and if it is appropriate to
# completly skip them (like we are doing here).
- log.warning("Unable to retrieve Watch object associated to %s",
- repr(raw_event))
+ if not (raw_event.mask & IN_IGNORED):
+ log.warning("Unable to retrieve Watch object associated to %s",
+ repr(raw_event))
continue
revent = self._sys_proc_fun(raw_event) # system processings
if watch_ and watch_.proc_fun: