Skip to content

Commit

Permalink
Fix exception if no filters configured (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhongsun96 authored Oct 5, 2023
1 parent 5a63b68 commit a85e73e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/danswer/bots/slack/handlers/handle_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def handle_message(
logger.info(
"Found slack bot config for channel. Restricting bot to use document "
f"sets: {document_set_names}, "
f"validity checks enabled: {channel_conf['answer_filters']}"
f"validity checks enabled: {channel_conf.get('answer_filters', 'NA')}"
)

respond_tag_only = channel_conf.get("respond_tag_only") or False
Expand Down

1 comment on commit a85e73e

@vercel
Copy link

@vercel vercel bot commented on a85e73e Oct 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.