summaryrefslogtreecommitdiff
path: root/python2
diff options
context:
space:
mode:
Diffstat (limited to 'python2')
-rwxr-xr-xpython2/pyinotify.py5
1 files changed, 3 insertions, 2 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: