Commit Graph

3 Commits

Author SHA1 Message Date
Dan Yeaw
47c89b16e5
Fix lint errors, update dependencies 2024-07-02 07:16:39 -04:00
Actionless Loveless
13bdb458de
test(event): don't attempt to import exceptiongroup if running python 3.11+ 2024-06-30 22:04:38 +02:00
Arjan Molenaar
557eb22e30
Event manager executes all handlers
It accumulates the exceptions and raises an ExceptionGroup
exception if there were any failures.

Rationale:

Event handlers should not be dependent on the order in which they
are executed.

If a handler fails the remaining handlers are not executed.
This can result in non-deterministic behavior.

This commit fixes that my allowing all handlers to be executed.

To make this work we use the (backported) ExceptionGroup from
Python 3.11.
2022-05-08 13:28:21 +02:00