Skip to content

Commit b01c4fd

Browse files
author
Alexander Smishlajev
committed
fix incompatibility with python2.3 [SF#1432602]
1 parent 338b373 commit b01c4fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/mailer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Sending Roundup-specific mail over SMTP.
22
"""
33
__docformat__ = 'restructuredtext'
4-
# $Id: mailer.py,v 1.15 2006-02-08 03:47:28 richard Exp $
4+
# $Id: mailer.py,v 1.16 2006-02-16 06:33:05 a1s Exp $
55

66
import time, quopri, os, socket, smtplib, re, sys, traceback
77

@@ -149,7 +149,7 @@ def exception_message(self):
149149
'''
150150
subject = '%s: %s'%(self.config.TRACKER_NAME, sys.exc_info()[1])
151151
to = [self.config.ADMIN_EMAIL]
152-
content = traceback.format_exc()
152+
content = '\n'.join(traceback.format_exception(*sys.exc_info()))
153153
self.standard_message(to, subject, content)
154154

155155
def smtp_send(self, to, message):

0 commit comments

Comments
 (0)