fix: fix exception during slack notification serialization attempt
This commit is contained in:
parent
fc78a4c2d6
commit
eecd72acf1
2 changed files with 9 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -14,6 +14,7 @@ rhodecode/public/js/src/components/**/*.css
|
|||
/.project
|
||||
/.pydevproject
|
||||
/.coverage
|
||||
.coverage.*
|
||||
/.cache*
|
||||
/.ruff_cache*
|
||||
/.rhodecode
|
||||
|
|
|
|||
|
|
@ -134,8 +134,15 @@ class SlackIntegrationType(IntegrationTypeBase):
|
|||
|
||||
handler = SlackDataHandler()
|
||||
slack_data = handler(event, data)
|
||||
# convert to dict so
|
||||
slack_data_dict = {
|
||||
"title": slack_data.title,
|
||||
"text": slack_data.text,
|
||||
"fields": slack_data.fields,
|
||||
"overrides": slack_data.overrides
|
||||
}
|
||||
# title, text, fields, overrides
|
||||
run_task(post_text_to_slack, self.settings, slack_data)
|
||||
run_task(post_text_to_slack, self.settings, slack_data_dict)
|
||||
|
||||
|
||||
@async_task(ignore_result=True, base=RequestContextTask)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue