mm2: checking for null value
This commit is contained in:
parent
c67ad44699
commit
ee54ef2b81
|
@ -93,7 +93,7 @@ class Manager(Loggable):
|
||||||
( listener.__class__.__name__, path) )
|
( listener.__class__.__name__, path) )
|
||||||
wd = self.wm.add_watch(path, pyinotify.ALL_EVENTS, rec=True,
|
wd = self.wm.add_watch(path, pyinotify.ALL_EVENTS, rec=True,
|
||||||
auto_add=True, proc_fun=listener)
|
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):
|
def __create_organizer(self, target_path, recorded_path):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue