call_for_result should have a max of 1, not 0

This commit is contained in:
jesopo 2018-09-09 16:06:48 +01:00 committed by Dan
parent 165efe20b9
commit fc8e3818fe

View file

@ -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: