This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Incorrect code in example
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, bruceeckel
Priority: normal Keywords:

Created on 2006-04-26 18:20 by bruceeckel, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg28354 - (view) Author: Bruce Eckel (bruceeckel) Date: 2006-04-26 18:20
In
11.22.9 Example of Client Usage 
The line:
except Error, v:
should probably be:
except Exception, v:
msg28355 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-04-27 12:50
Logged In: YES 
user_id=11375

I think the code was intending to use xmlrpclib.Error, which
is the base class for both Fault and ProtocolError, but
there were two problems: the missing import didn't make that
clear, and the Error class wasn't mentioned in the
documentation.  I've fixed the import and added a
description of the Error exception.

Thanks!
History
Date User Action Args
2022-04-11 14:56:17adminsetgithub: 43281
2006-04-26 18:20:20bruceeckelcreate