Skip to content

Commit

Permalink
SKALE-2430 Fix retry wrapper error
Browse files Browse the repository at this point in the history
  • Loading branch information
badrogger committed May 7, 2020
1 parent 29e6072 commit a5820ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skale/transactions/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a5820ab

Please sign in to comment.