Skip to content

Commit

Permalink
Merge pull request #10 from feizeikesi/master
Browse files Browse the repository at this point in the history
fix: 'ascii' codec can't encode characters in position 0-5: ordinal n…
  • Loading branch information
安生 authored May 8, 2019
2 parents 5356f5b + 449286d commit a3ddd36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sentry_dingding/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ def post_process(self, group, event, **kwargs):
"msgtype": "markdown",
"markdown": {
"title": title,
"text": "#### {title} \n > {message} [href]({url})".format(
"text": u"#### {title} \n > {message} [href]({url})".format(
title=title,
message=event.message,
url="{0}events/{1}/".format(group.get_absolute_url(), event.id)
url=u"{0}events/{1}/".format(group.get_absolute_url(), event.id)
)
}
}
Expand Down

0 comments on commit a3ddd36

Please sign in to comment.