From 2ba504ae9a8d1fe87c00549bf48de0e4203d24d1 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 26 Oct 2019 21:44:17 +0200 Subject: Fix a bug when removing an event handler --- poezio/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3