mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 08:58:38 +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
|
:param handler: func, the handler function to deregister
|
||||||
"""
|
"""
|
||||||
# Iterate through all handlers and remove 'handler' where found
|
# 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:
|
if handler in value:
|
||||||
# Handler is in this alert type list
|
# Handler is in this alert type list
|
||||||
value.remove(handler)
|
value.remove(handler)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue