Skip to content

Commit

Permalink
Revert "try remove AssertionError"
Browse files Browse the repository at this point in the history
This reverts commit ebbb710.
  • Loading branch information
t0rbik committed Sep 23, 2023
1 parent 423cafe commit 38838dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/assets/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@ def aggregated_price_in_stables(self):
# price = self.defillama_price_in_stables()
price = 0

try:
price = self.geckoterminal_price_in_stables()
if price != 0:
return price
except:
pass

try:
return self.dexscreener_price_in_stables()
except (requests.exceptions.HTTPError, requests.exceptions.JSONDecodeError):
Expand Down

0 comments on commit 38838dc

Please sign in to comment.