From fc8e3818fe728d73ee8644eacaccdfeb27f0049b Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 9 Sep 2018 16:06:48 +0100 Subject: [PATCH] call_for_result should have a max of 1, not 0 --- EventManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EventManager.py b/EventManager.py index 67cd1f76..560c671e 100644 --- a/EventManager.py +++ b/EventManager.py @@ -151,7 +151,7 @@ class EventHook(object): return child def call_for_result(self, default=None, **kwargs): - results = self.call_limited(0, **kwargs) + results = self.call_limited(1, **kwargs) return default if not len(results) else results[0] def assure_call(self, **kwargs): if not self._stored_events == None: