~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Robert Collins
  • Date: 2005-09-06 11:09:03 UTC
  • mfrom: (1178)
  • mto: (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: robertc@robertcollins.net-20050906110903-b6be7bd6102403cb
really merge mpool

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
        ei = sys.exc_info()
170
170
        msg = str(ei[1])
171
171
 
172
 
    if msg[-1] == '\n':
 
172
    if msg and (msg[-1] == '\n'):
173
173
        msg = msg[:-1]
174
174
        
175
175
    _bzr_logger.exception(msg)