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
parent 820523a28d
commit bfdb4a88da

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: