~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2009-08-21 05:48:59 UTC
  • mto: This revision was merged to the branch mainline in revision 4636.
  • Revision ID: mbp@sourcefrog.net-20090821054859-9f384lsjkxuzg5pe
python2.4 socket.error doesn't have a useful repr

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=repr(orig_error))
 
2925
            orig_error=repr(orig_error.args))
2925
2926
 
2926
2927
 
2927
2928
class UnknownRules(BzrError):