diff --git a/pots/models.py b/pots/models.py index 009c54b..e7254fc 100644 --- a/pots/models.py +++ b/pots/models.py @@ -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}")