summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2019-10-26 21:44:17 +0200
committermathieui <mathieui@mathieui.net>2019-10-26 21:44:17 +0200
commit2ba504ae9a8d1fe87c00549bf48de0e4203d24d1 (patch)
treef03646e93ea0c1a62996845547794115c813262f
parent5e3f2ab19f36b86043f14abb20f5c170c3eb75a1 (diff)
downloadpoezio-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.py2
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)