This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch slack_v2
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 91e95e1e47e8f28602595268da0545ebaf649c9a
Author: Maxime Beauchemin <[email protected]>
AuthorDate: Thu May 9 20:56:16 2024 -0700

    fix: move to slack-sdk files_upload_v2
    
    Randomly caught https://github.com/apache/superset/issues/28353 and
    decided to propose a fix. Unclear if this is unit tested properly or not
    but thought I'd put it out there as it seemed straightforward when I
    looked at the docs here
    https://github.com/slackapi/python-slack-sdk/releases/tag/v3.19.0
---
 superset/tasks/slack_util.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/tasks/slack_util.py b/superset/tasks/slack_util.py
index 72a11b1e92..5226f50dc6 100644
--- a/superset/tasks/slack_util.py
+++ b/superset/tasks/slack_util.py
@@ -48,7 +48,7 @@ def deliver_slack_msg(
     if file:
         response = cast(
             SlackResponse,
-            client.files_upload(
+            client.files_upload_v2(
                 channels=slack_channel, file=file, initial_comment=body, 
title=subject
             ),
         )

Reply via email to