~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Robert Collins
  • Date: 2005-08-25 03:23:17 UTC
  • mto: (974.1.50) (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: robertc@robertcollins.net-20050825032317-fe3c65b2a432adc8
merge from mpool up to 1109

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
    """
177
177
    if msg == None:
178
178
        ei = sys.exc_info()
179
 
        s = str(ei[1])
180
 
        if s[-1] == '\n':
181
 
            s = s[:-1]
182
 
        msg = s
 
179
        msg = str(ei[1])
 
180
 
 
181
    if msg[-1] == '\n':
 
182
        msg = msg[:-1]
183
183
        
184
184
    _bzr_logger.exception(msg)