Re: [Tutor] Handling exceptions

2011-11-07 Thread Steven D'Aprano
Gerhardus Geldenhuis wrote: try: server = xmlrpclib.Server("http://192.168.2.11/cobbler_api";) #... except xmlrpclib.Fault as detail: print 'xmlrpc error' print detail #print detail.arguments print repr(detail) I don't understand what I am getting from the exception

Re: [Tutor] Handling exceptions

2011-11-07 Thread Hugo Arts
On Mon, Nov 7, 2011 at 12:52 PM, Gerhardus Geldenhuis wrote: > Hi > I am trying to handle exceptions for a xmlrpc class interfacing with > cobbler. > The exception: >  xmlrpclib.Fault: test_profile'"> > > and the experimental code. >   try: >     server = xmlrpclib.Server("http://192.168.2.11/cob

[Tutor] Handling exceptions

2011-11-07 Thread Gerhardus Geldenhuis
Hi I am trying to handle exceptions for a xmlrpc class interfacing with cobbler. The exception: xmlrpclib.Fault: and the experimental code. try: server = xmlrpclib.Server("http://192.168.2.11/cobbler_api";) #... except xmlrpclib.Fault as detail: print 'xmlrpc error' prin