From a5820ab46d3317129346de00dbaa67f625bd3ca3 Mon Sep 17 00:00:00 2001 From: badrogger Date: Thu, 7 May 2020 15:27:44 +0300 Subject: [PATCH] SKALE-2430 Fix retry wrapper error --- skale/transactions/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skale/transactions/tools.py b/skale/transactions/tools.py index 621bdfc5..d51617d6 100644 --- a/skale/transactions/tools.py +++ b/skale/transactions/tools.py @@ -121,8 +121,8 @@ def run_tx_with_retry(transaction, *args, max_retries=3, tx_res = None exp_timeout = 1 while not success and attempt < max_retries: - tx_res = transaction(*args, **kwargs) try: + tx_res = transaction(*args, **kwargs) tx_res.raise_for_status() except TransactionFailedError as err: logger.error(f'Tx attempt {attempt}/{max_retries} failed',