~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-21 07:18:31 UTC
  • mfrom: (4634.1.5 trivial)
  • Revision ID: pqm@pqm.ubuntu.com-20090821071831-d3dacehbozpkpy27
(mbp) fix crash formatting CannotBindAddress

Show diffs side-by-side

added added

removed removed

Lines of Context:
2920
2920
    _fmt = 'Cannot bind address "%(host)s:%(port)i": %(orig_error)s.'
2921
2921
 
2922
2922
    def __init__(self, host, port, orig_error):
 
2923
        # nb: in python2.4 socket.error doesn't have a useful repr
2923
2924
        BzrError.__init__(self, host=host, port=port,
2924
 
            orig_error=orig_error[1])
 
2925
            orig_error=repr(orig_error.args))
2925
2926
 
2926
2927
 
2927
2928
class UnknownRules(BzrError):