diff options
author | mathieui <mathieui@mathieui.net> | 2019-10-26 21:44:17 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2019-10-26 21:44:17 +0200 |
commit | 2ba504ae9a8d1fe87c00549bf48de0e4203d24d1 (patch) | |
tree | f03646e93ea0c1a62996845547794115c813262f | |
parent | 5e3f2ab19f36b86043f14abb20f5c170c3eb75a1 (diff) | |
download | poezio-2ba504ae9a8d1fe87c00549bf48de0e4203d24d1.tar.gz poezio-2ba504ae9a8d1fe87c00549bf48de0e4203d24d1.tar.bz2 poezio-2ba504ae9a8d1fe87c00549bf48de0e4203d24d1.tar.xz poezio-2ba504ae9a8d1fe87c00549bf48de0e4203d24d1.zip |
Fix a bug when removing an event handler
-rw-r--r-- | poezio/events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/events.py b/poezio/events.py index b34eef32..5213f663 100644 --- a/poezio/events.py +++ b/poezio/events.py @@ -98,7 +98,7 @@ class EventHandler: priority.remove(callback) else: callbacks = self.events[name] - for priority in callbacks.entries(): + for priority in callbacks.values(): for entry in priority[:]: if entry == callback: priority.remove(callback) |