Add fallback for load_tokens.

This commit is contained in:
2025-07-28 14:53:11 +10:00
parent bf835e2529
commit 295ab69fa3

View File

@@ -175,4 +175,7 @@ class CrocBot(commands.Bot):
async def load_tokens(self, path: str | None = None):
for row in await UserAuth.fetch_where():
await self.add_token(row.token, row.refresh_token)
try:
await self.add_token(row.token, row.refresh_token)
except Exception:
logger.exception(f"Failed to add token for {row}")