Skip to content

Commit

Permalink
remove await
Browse files Browse the repository at this point in the history
  • Loading branch information
isaric committed Dec 16, 2023
1 parent 36a32d4 commit 198d27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def add_message():
app.logger.info("Received event contains files")
# TODO: switch to manageable list of channel ids
if content["event"]["channel"] == os.environ['READ_SLACK_CHANNEL_ID']:
await detector.detect(content["event"]["files"][0]["url_private_download"])
detector.detect(content["event"]["files"][0]["url_private_download"])
else:
app.logger.info(f'Channel ID {content["event"]["channel"]} is not on read list. Skipping event')
return "OK"
Expand Down

0 comments on commit 198d27f

Please sign in to comment.