cc-4105: possibly fixed bug with __unregister removing keys that aren't there

This commit is contained in:
Rudi Grinberg 2012-08-15 11:01:06 -04:00
parent 5df5238eb3
commit e570e4de90
1 changed files with 3 additions and 1 deletions

View File

@ -47,4 +47,6 @@ class EventContractor(Loggable):
return True # We actually added something, hence we return true.
# events are unregistered automatically no need to screw around with them
def __unregister(self, evt): del self.store[evt.path]
def __unregister(self, evt):
try: del self.store[evt.path]
except Exception as e: self.unexpected_exception(e)