File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/sentry/integrations/slack Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 13
13
from sentry .models .rule import Rule
14
14
from sentry .notifications .notifications .activity import EMAIL_CLASSES_BY_TYPE
15
15
from sentry .types .integrations import ExternalProviderEnum
16
+ from sentry .utils import json
16
17
17
18
_default_logger = getLogger (__name__ )
18
19
@@ -166,6 +167,8 @@ def _handle_parent_notification(
166
167
block , fallback_text = notification_to_send
167
168
)
168
169
payload .update (slack_payload )
170
+ # TODO (Yash): Users should not have to remember to do this, interface should handle serializing the field
171
+ payload ["blocks" ] = json .dumps (payload .get ("blocks" ))
169
172
try :
170
173
client .post ("/chat.postMessage" , data = payload , timeout = 5 )
171
174
except Exception as err :
You can’t perform that action at this time.
0 commit comments