Fix the typos in the exception messages
@@ -346,14 +346,14 @@ async def _execute(
# Definitely retriable error, no matter what is the error-reaction mode.
except HandlerRetryError as e:
- logger.exception(f"Handler {handler.id!r} failed with an retry exception. Will retry.")
+ logger.exception(f"Handler {handler.id!r} failed with a retry exception. Will retry.")
events.exception(cause.body, message=f"Handler {handler.id!r} failed. Will retry.")
status.set_retry_time(body=cause.body, patch=cause.patch, handler=handler, delay=e.delay)
handlers_left.append(handler)
# Definitely fatal error, no matter what is the error-reaction mode.
except HandlerFatalError as e:
- logger.exception(f"Handler {handler.id!r} failed with an fatal exception. Will stop.")
+ logger.exception(f"Handler {handler.id!r} failed with a fatal exception. Will stop.")
events.exception(cause.body, message=f"Handler {handler.id!r} failed. Will stop.")
status.store_failure(body=cause.body, patch=cause.patch, handler=handler, exc=e)
# TODO: report the handling failure somehow (beside logs/events). persistent status?
