From 8bd9214003c7d5bc057b58e536fc99fbe33b398a Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Wed, 11 Jun 2025 19:35:37 +0200 Subject: [PATCH] StopAsyncIteration should be StopIteration, as it's iterating over the chain endpoints, not async iterating. --- async_substrate_interface/substrate_addons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async_substrate_interface/substrate_addons.py b/async_substrate_interface/substrate_addons.py index 7ec19b4..d076104 100644 --- a/async_substrate_interface/substrate_addons.py +++ b/async_substrate_interface/substrate_addons.py @@ -355,7 +355,7 @@ async def _retry(self, method, *args, **kwargs): try: await self._reinstantiate_substrate(e, use_archive=use_archive) return await method_(*args, **kwargs) - except StopAsyncIteration: + except StopIteration: logger.error( f"Max retries exceeded with {self.url}. No more fallback chains." )