summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpython2/pyinotify.py2
-rwxr-xr-xpython3/pyinotify.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/python2/pyinotify.py b/python2/pyinotify.py
index 8954802..5f366d7 100755
--- a/python2/pyinotify.py
+++ b/python2/pyinotify.py
@@ -1780,7 +1780,7 @@ class WatchManager:
try:
del self._wmd[wd]
except KeyError, err:
- log.error(str(err))
+ log.error('Cannot delete unknown watch descriptor %s' % str(err))
@property
def watches(self):
diff --git a/python3/pyinotify.py b/python3/pyinotify.py
index 05b2846..44ab71f 100755
--- a/python3/pyinotify.py
+++ b/python3/pyinotify.py
@@ -1720,7 +1720,7 @@ class WatchManager:
try:
del self._wmd[wd]
except KeyError as err:
- log.error(str(err))
+ log.error('Cannot delete unknown watch descriptor %s' % str(err))
@property
def watches(self):