mm2: checking for null value

This commit is contained in:
Rudi Grinberg 2012-08-28 17:26:33 -04:00
parent c67ad44699
commit ee54ef2b81
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class Manager(Loggable):
( listener.__class__.__name__, path) )
wd = self.wm.add_watch(path, pyinotify.ALL_EVENTS, rec=True,
auto_add=True, proc_fun=listener)
self.__wd_path[path] = wd.values()[0]
if wd: self.__wd_path[path] = wd.values()[0]
def __create_organizer(self, target_path, recorded_path):
"""