(msg: str)
| 143 | |
| 144 | |
| 145 | def _handle_exception(msg: str) -> Callable[[BaseExceptionGroup[Exception]], None]: |
| 146 | def _handle(exc_group: BaseExceptionGroup[Exception]) -> None: |
| 147 | for exc in flatten_exception_group(exc_group): |
| 148 | logger.opt(colors=True, exception=exc).error(msg) |
| 149 | |
| 150 | return _handle |
| 151 | |
| 152 | |
| 153 | async def _apply_event_preprocessors( |
no outgoing calls
no test coverage detected