Add fallback for load_tokens.
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user