Fix deregister_handler

This commit is contained in:
Andrew Resch 2009-07-02 04:10:20 +00:00
parent b9a2bf786c
commit 883e61909f
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class AlertManager(component.Component):
:param handler: func, the handler function to deregister
"""
# Iterate through all handlers and remove 'handler' where found
for (key, value) in self.handlers:
for (key, value) in self.handlers.items():
if handler in value:
# Handler is in this alert type list
value.remove(handler)