~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Martin Pool
  • Date: 2005-08-25 00:55:22 UTC
  • Revision ID: mbp@sourcefrog.net-20050825005522-1288ce330e3fba0b
- more cleanups of error reporting

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)