fix unicode error when a message can't be posted
This commit is contained in:
parent
0746942e02
commit
5a8203c2b6
1 changed files with 2 additions and 2 deletions
|
|
@ -196,9 +196,9 @@ class Monboob(ReplApplication):
|
||||||
backend.post_message(message)
|
backend.post_message(message)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
content = u'Unable to send message to %s:\n' % thread_id
|
content = u'Unable to send message to %s:\n' % thread_id
|
||||||
content += '\n\t%s\n' % e
|
content += u'\n\t%s\n' % e
|
||||||
if logging.root.level == logging.DEBUG:
|
if logging.root.level == logging.DEBUG:
|
||||||
content += '\n%s\n' % get_backtrace(e)
|
content += u'\n%s\n' % get_backtrace(e)
|
||||||
self.send_email(backend, Message(thread,
|
self.send_email(backend, Message(thread,
|
||||||
0,
|
0,
|
||||||
title='Unable to send message',
|
title='Unable to send message',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue