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) *args, **kargs)
else: else:
for manager in self.managers.values(): for manager in self.managers.values():
if manager.getName() != manager_name: if manager.getName() != self.getName():
manager.doOnEvent(event_type, *args, **kargs) try:
manager.doOnEvent(event_type, *args, **kargs)
except NotImplementedError:
pass
def getOptions(self): def getOptions(self):
return self.config_opts return self.config_opts