Changeset 563 for trunk/email2trac.py.in


Ignore:
Timestamp:
08/22/11 10:00:46 (13 years ago)
Author:
bas
Message:

fixed unicode error when printing subject line. Python logging module problem, closes #267

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r561 r563  
    16351635            subject  = 'No Subject'
    16361636        else:
    1637             subject  = self.email_to_unicode(m['Subject'])
     1637            ## Bug in python logging module <2.6
     1638            #subject  = self.email_to_unicode(m['Subject'])
     1639            subject  = repr(m['Subject'])
    16381640
    16391641        self.logger.info('subject: %s' %subject)
     
    22712273    (torcpts, ccrcpts) = self.get_recipients(resid)
    22722274
    2273     #print torcpts, ccrcpts, sender_email
     2275    print torcpts, ccrcpts, sender_email
    22742276
    22752277    if not tktparser.email_header_acl('notify_reporter_black_list', sender_email, False):
Note: See TracChangeset for help on using the changeset viewer.