Keep handlers are attribute in AutoProcessor

This commit is contained in:
Christophe Bedard 2019-12-31 15:09:08 -05:00
parent af2e0a2d41
commit 1e84b9d35e

View file

@ -424,9 +424,9 @@ class AutoProcessor():
:param events: the list of events to process
:param kwargs: the kwargs to provide when instanciating EventHandler subclasses
"""
handlers = self.get_applicable_event_handlers(events)
self.handlers = self.get_applicable_event_handlers(events)
Processor(
*handlers,
*self.handlers,
**kwargs,
).process(events)