~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Alexander Belchenko
  • Date: 2007-03-10 23:36:55 UTC
  • mto: This revision was merged to the branch mainline in revision 2356.
  • Revision ID: bialix@ukr.net-20070310233655-1bdw1r64cytacnfe
LockError produce unprintable exception on Python 2.5 because it try to override StandardError.message attribute

Show diffs side-by-side

added added

removed removed

Lines of Context:
634
634
 
635
635
class LockError(BzrError):
636
636
 
637
 
    _fmt = "Lock error: %(message)s"
 
637
    _fmt = "Lock error: %(msg)s"
638
638
 
639
639
    internal_error = True
640
640
 
644
644
    #
645
645
    # New code should prefer to raise specific subclasses
646
646
    def __init__(self, message):
647
 
        self.message = message
 
647
        self.msg = message
648
648
 
649
649
 
650
650
class LockActive(LockError):