diff --git a/backend/alembic/versions/4ee1287bd26a_add_multiple_slack_bot_support.py b/backend/alembic/versions/4ee1287bd26a_add_multiple_slack_bot_support.py index 42790e63d84..bcb82ee6309 100644 --- a/backend/alembic/versions/4ee1287bd26a_add_multiple_slack_bot_support.py +++ b/backend/alembic/versions/4ee1287bd26a_add_multiple_slack_bot_support.py @@ -68,7 +68,12 @@ def upgrade() -> None: app_token = None first_row_id = None - tokens = cast(dict, get_kv_store().load("slack_bot_tokens_config_key")) + try: + tokens = cast(dict, get_kv_store().load("slack_bot_tokens_config_key")) + except Exception: + logger.warning("No existing Slack bot tokens found.") + tokens = {} + bot_token = tokens.get("bot_token") app_token = tokens.get("app_token")