Skip to content

Commit

Permalink
fix log error
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometheo committed Sep 26, 2024
1 parent 0dc2907 commit f3f4346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pots/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ def fetch_usd_prices(self):
self.amount_paid_usd = token.format_price(self.amount) * price_usd
self.save()
logger.info(
f"Saved USD prices for pot payout for pot id: {self.pot.account}"
f"Saved USD prices for pot payout for pot id: {self.pot.account if self.pot else self.round}"
)
except Exception as e:
logger.error(f"Failed to calculate and save USD prices: {e}")
Expand Down

0 comments on commit f3f4346

Please sign in to comment.