From 198d27fad2e9eedebb1de45aa30c63555e607b29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=C5=A0ari=C4=87?= Date: Sat, 16 Dec 2023 14:00:09 +0100 Subject: [PATCH] remove await --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index a737440..d26cc94 100644 --- a/main.py +++ b/main.py @@ -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"