Changeset 89d33df


Ignore:
Timestamp:
Dec 11, 2008 8:58:38 AM (16 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
0c4e561
Parents:
3bce099
Message:

make sure XMLRPC faults have integer error codes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/remote_service.py

    r3bce099 r89d33df  
    261261            msg = self.method(p, fid)
    262262        except service_error, e:
    263             raise Fault(e.code_string(), e.desc)
     263            raise Fault(e.code, "%s: %s" % (e.code_string(), e.desc))
    264264        if msg != None:
    265265            return self.make_unicode(self.apply_to_tags(\
     
    352352                    "SSL error contacting %s: %s" % (url, e.message))
    353353        except Fault, f:
    354             raise service_error(None, f.faultString, f.faultCode)
     354            raise service_error(f.faultCode, f.faultString)
    355355        except Error, e:
    356356            raise service_error(service_error.protocol,
Note: See TracChangeset for help on using the changeset viewer.