From ce7410cdd17a9a8f9d5210d2b091d4e2e2613dca Mon Sep 17 00:00:00 2001 From: antares-sw <23400824+antares-sw@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:32:06 +0300 Subject: [PATCH] Update sw_utils/decorators.py Co-authored-by: evgeny-stakewise <123374581+evgeny-stakewise@users.noreply.github.com> Signed-off-by: antares-sw <23400824+antares-sw@users.noreply.github.com> --- sw_utils/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw_utils/decorators.py b/sw_utils/decorators.py index a2e68ce..dae3944 100644 --- a/sw_utils/decorators.py +++ b/sw_utils/decorators.py @@ -50,7 +50,7 @@ def default_log_before(retry_state: 'RetryCallState') -> None: default_logger.log(logging.INFO, msg, *args) -def default_after(future: Any) -> None: +def default_after(future: Any) -> NoReturn: raise future.outcome.exception()