summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Martini <seb@dbzteam.org>2011-10-11 10:34:47 -0700
committerSebastien Martini <seb@dbzteam.org>2011-10-11 10:34:47 -0700
commit92e6abb6cd41ba1b9ea2ebe9789bf0cf04708c2b (patch)
treed181a503654ce9b2c6ef74210fdad865fc36eed9
parentb8064287ddc14979a7b1b936f6159d956b25da60 (diff)
downloadpyinotify-92e6abb6cd41ba1b9ea2ebe9789bf0cf04708c2b.tar.gz
Fixed error message (reported by Jordan Pittier).
-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):