X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FVerifyPerson.py;fp=PLC%2FMethods%2FVerifyPerson.py;h=9dd784b725e954ce46c7caed25df6cc857de55a2;hb=abef31240c9e9e498928da73f6db8cbe0ecede60;hp=fd4adb72f4845b8c5b192079b64f4fe1bdaa47b5;hpb=a0e131a2893c75df786c94997370b01cb623dee0;p=plcapi.git diff --git a/PLC/Methods/VerifyPerson.py b/PLC/Methods/VerifyPerson.py index fd4adb7..9dd784b 100644 --- a/PLC/Methods/VerifyPerson.py +++ b/PLC/Methods/VerifyPerson.py @@ -46,14 +46,14 @@ class VerifyPerson(Method): # Get account information persons = Persons(self.api, [person_id_or_email]) if not persons: - raise PLCInvalidArgument, "No such account" + raise PLCInvalidArgument, "No such account %r"%person_id_or_email person = persons[0] if person['peer_id'] is not None: - raise PLCInvalidArgument, "Not a local account" + raise PLCInvalidArgument, "Not a local account %r"%person_id_or_email if person['enabled']: - raise PLCInvalidArgument, "Account must be new (disabled)" + raise PLCInvalidArgument, "Account %r must be new (disabled)"%person_id_or_email # Get the primary site name person_sites = Sites(self.api, person['site_ids'])