From f5564ece9ef2def35e2acdd9fca23dde1de86972 Mon Sep 17 00:00:00 2001 From: spuddy <72078372+0xSpuddy@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:15:02 -0400 Subject: [PATCH] Revert "catch balancer UnboundLocalError" --- src/telliot_feeds/sources/gyd_source.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/telliot_feeds/sources/gyd_source.py b/src/telliot_feeds/sources/gyd_source.py index 4c887c56..477f0d1f 100644 --- a/src/telliot_feeds/sources/gyd_source.py +++ b/src/telliot_feeds/sources/gyd_source.py @@ -109,9 +109,7 @@ async def get_total_liquidity_of_pools(self) -> list[float]: except requests.exceptions.ConnectTimeout: logger.warning("Timeout Error, No data retrieved from Balancer subgraph") return [] - except UnboundLocalError: - logger.warning("UnboundLocalError, No data retrieved from Balancer subgraph") - return [] + except Exception as e: logger.warning(f"No data retrieved from Balancer subgraph {e}") return []