Skip to content
Open
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
4 changes: 3 additions & 1 deletion superset/reports/notifications/slackv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import logging
from collections.abc import Sequence
from io import IOBase
import io
from typing import List, Union

import backoff
Expand Down Expand Up @@ -98,9 +99,10 @@ def send(self) -> None:
for channel in channels:
if len(files) > 0:
for file in files:
file_obj = io.BytesIO(file)
client.files_upload_v2(
channel=channel,
file=file,
file=file_obj,
initial_comment=body,
title=title,
filename=file_name,
Expand Down
Loading