diff --git a/python3/pyinotify.py b/python3/pyinotify.py index bc24313..1f59239 100755 --- a/python3/pyinotify.py +++ b/python3/pyinotify.py @@ -2064,7 +2064,7 @@ def get_wd(self, path): """ path = self.__format_path(path) for iwd in self._wmd.items(): - if iwd[1].path == path: + if iwd[1] is Watch and iwd[1].path == path: return iwd[0] def get_path(self, wd):