mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Fix deregister_handler
This commit is contained in:
parent
b9a2bf786c
commit
883e61909f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue