Skip to content

Commit

Permalink
Merge pull request #795 from tellor-io/catch-unboundlocalerror
Browse files Browse the repository at this point in the history
catch balancer UnboundLocalError
  • Loading branch information
0xSpuddy authored Aug 23, 2024
2 parents f1ac1d0 + 021b7ff commit c92d077
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 c92d077

Please sign in to comment.