Skip to content

Commit

Permalink
Merge pull request getredash#1223 from toyama0919/master
Browse files Browse the repository at this point in the history
Fix: Alert: when hipchat Alert.name is multibyte character, occur error.
  • Loading branch information
arikfr authored Aug 10, 2016
2 parents b750843 + 88d61e8 commit b781003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/destinations/hipchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def notify(self, alert, query, user, new_state, app, host, options):
alert_url = '{host}/alerts/{alert_id}'.format(host=host, alert_id=alert.id);
query_url = '{host}/queries/{query_id}'.format(host=host, query_id=query.id);

message = '<a href="{alert_url}">{alert_name}</a> changed state to {new_state} (based on <a href="{query_url}">this query</a>).'.format(
message = u'<a href="{alert_url}">{alert_name}</a> changed state to {new_state} (based on <a href="{query_url}">this query</a>).'.format(
alert_name=alert.name, new_state=new_state.upper(),
alert_url=alert_url,
query_url=query_url)
Expand Down

0 comments on commit b781003

Please sign in to comment.