Merge "manager.notify() doesn't handle the NotImplementedError exceptions"

This commit is contained in:
Jenkins 2017-05-11 12:08:14 +00:00 committed by Gerrit Code Review
commit b542db3beb

View File

@ -59,8 +59,11 @@ class Manager(SynergyObject, Thread):
*args, **kargs)
else:
for manager in self.managers.values():
if manager.getName() != manager_name:
manager.doOnEvent(event_type, *args, **kargs)
if manager.getName() != self.getName():
try:
manager.doOnEvent(event_type, *args, **kargs)
except NotImplementedError:
pass
def getOptions(self):
return self.config_opts