Skip to content

Commit

Permalink
Merge pull request #796 from tellor-io/revert-795-catch-unboundlocale…
Browse files Browse the repository at this point in the history
…rror

Revert "catch balancer UnboundLocalError"
  • Loading branch information
0xSpuddy authored Aug 23, 2024
2 parents c92d077 + f5564ec commit 30d6aaf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/telliot_feeds/sources/gyd_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []
Expand Down

0 comments on commit 30d6aaf

Please sign in to comment.