Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
minor bug in send_chat_notification
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Apr 10, 2016
1 parent fa4803f commit c3d3911
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion knesset/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from django.conf import settings
from mailer import send_html_mail
from actstream.models import Action
import traceback


def limit_by_request(qs, request):
Expand Down Expand Up @@ -182,4 +183,8 @@ def send_chat_notification(file, text, data):
print text
print "----"
else:
slack_message('django-slack/test.slack', {"text" : text})
slack_message('django-slack/text.slack', {"text" : text})

def send_chat_exception_notification(file, text_prefix, data, exception):
data.update({'traceback': traceback.format_exc()})
send_chat_notification(file, text_prefix+" "+str(exception.message), data)

0 comments on commit c3d3911

Please sign in to comment.