Skip to content

Commit

Permalink
catch balancer UnboundLocalError
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSpuddy committed Aug 23, 2024
1 parent f1ac1d0 commit 021b7ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/telliot_feeds/sources/gyd_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ 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 []
Expand Down

0 comments on commit 021b7ff

Please sign in to comment.