Skip to content

Commit

Permalink
fix alembic migration
Browse files Browse the repository at this point in the history
  • Loading branch information
hagen-danswer committed Nov 20, 2024
1 parent 5323b1c commit fb652b6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit fb652b6

Please sign in to comment.