Skip to content

Commit 8bd9214

Browse files
committed
StopAsyncIteration should be StopIteration, as it's iterating over the chain endpoints, not async iterating.
1 parent a722142 commit 8bd9214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

async_substrate_interface/substrate_addons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ async def _retry(self, method, *args, **kwargs):
355355
try:
356356
await self._reinstantiate_substrate(e, use_archive=use_archive)
357357
return await method_(*args, **kwargs)
358-
except StopAsyncIteration:
358+
except StopIteration:
359359
logger.error(
360360
f"Max retries exceeded with {self.url}. No more fallback chains."
361361
)

0 commit comments

Comments
 (0)