def call(self, creds, xrn, type):
    
        if type:
            hrn = urn_to_hrn(xrn)[0]
        else:
            hrn, type = urn_to_hrn(xrn)

        # check creds
        valid_creds = self.api.auth.checkCredentials(creds, 'getcredential')
        self.api.auth.verify_object_belongs_to_me(hrn)

        #log the call
        origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()
        self.api.logger.info((self.api.interface, origin_hrn, hrn, self.name)%"interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s")	

        return self.api.manager.GetCredential(self.api, xrn, type, self.api.auth.client_gid.get_urn())
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/sfa/methods/GetCredential.py/GetCredential.call/swapped operands of `%`