From 295ab69fa37288584d8e5f9dc778c0141ebd17a4 Mon Sep 17 00:00:00 2001 From: Interitio Date: Mon, 28 Jul 2025 14:53:11 +1000 Subject: [PATCH] Add fallback for load_tokens. --- src/meta/crocbot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/meta/crocbot.py b/src/meta/crocbot.py index 8d9a245..db149f6 100644 --- a/src/meta/crocbot.py +++ b/src/meta/crocbot.py @@ -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}")