Hi I am trying to handle exceptions for a xmlrpc class interfacing with cobbler.
The exception: xmlrpclib.Fault: <Fault 1: "cobbler.cexceptions.CX:'invalid profile name: test_profile'"> and the experimental code. 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. Do I only get a string and is the above snippet a good/clean/nice way of handling it. If I only get a string then it is likely that I will have to have few if's to handle the various error strings returned. Regards -- Gerhardus Geldenhuis
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor