Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async def slack_events(request: Request) -> JSONResponse:
logger.info("SLACK EVENT: Had no subtype, ignoring it")
return JSONResponse({"status": "ignored"})

if event not in WATCHED_CHANNELS:
if event.get("channel", None) not in WATCHED_CHANNELS:
logger.info("SLACK EVENT: Message was not in a Watched Channel, returning!")
logger.info(WATCHED_CHANNELS)
return JSONResponse({"status": "ignored"})
Expand Down
Loading