diff roundup/mailer.py @ 3569:3954fbcefae5

fix incompatibility with python2.3 [SF#1432602]
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Thu, 16 Feb 2006 06:33:05 +0000
parents 61d48244e7a8
children a052781093d7
line wrap: on
line diff
--- a/roundup/mailer.py	Wed Feb 15 07:23:19 2006 +0000
+++ b/roundup/mailer.py	Thu Feb 16 06:33:05 2006 +0000
@@ -1,7 +1,7 @@
 """Sending Roundup-specific mail over SMTP.
 """
 __docformat__ = 'restructuredtext'
-# $Id: mailer.py,v 1.15 2006-02-08 03:47:28 richard Exp $
+# $Id: mailer.py,v 1.16 2006-02-16 06:33:05 a1s Exp $
 
 import time, quopri, os, socket, smtplib, re, sys, traceback
 
@@ -149,7 +149,7 @@
         '''
         subject = '%s: %s'%(self.config.TRACKER_NAME, sys.exc_info()[1])
         to = [self.config.ADMIN_EMAIL]
-        content = traceback.format_exc()
+        content = '\n'.join(traceback.format_exception(*sys.exc_info()))
         self.standard_message(to, subject, content)
 
     def smtp_send(self, to, message):

Roundup Issue Tracker: http://roundup-tracker.org/