~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/message.py

Remove some commented out cruft, test (and fix) handling of an 'UnknownMethod' response.

Show diffs side-by-side

added added

removed removed

Lines of Context:
252
252
    # few errors, and the rest are turned into a generic ErrorFromSmartServer.
253
253
    error_name = error_tuple[0]
254
254
    error_args = error_tuple[1:]
255
 
    if error_name == 'UnknownSmartMethod':
256
 
        raise errors.UnknownSmartMethod(error_args[1])
 
255
    if error_name == 'UnknownMethod':
 
256
        raise errors.UnknownSmartMethod(error_args[0])
257
257
    if error_name == 'LockContention':
258
258
        raise errors.LockContention('(remote lock)')
259
259
    elif error_name == 'LockFailed':