[ python-Bugs-1477140 ] Incorrect code in example

SourceForge.net noreply at sourceforge.net
Thu Apr 27 14:50:37 CEST 2006


Bugs item #1477140, was opened at 2006-04-26 14:20
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1477140&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Bruce Eckel (bruceeckel)
>Assigned to: A.M. Kuchling (akuchling)
Summary: Incorrect code in example

Initial Comment:
In
11.22.9 Example of Client Usage 
The line:
except Error, v:
should probably be:
except Exception, v:

----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2006-04-27 08:50

Message:
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!


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1477140&group_id=5470


More information about the Python-bugs-list mailing list