X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetPersons.py;fp=PLC%2FMethods%2FGetPersons.py;h=522893348ace8795ac682029e52b0ac95febe7ea;hb=abef31240c9e9e498928da73f6db8cbe0ecede60;hp=a483dd4d63761cc1d27edfc97d2179e5029d1cf4;hpb=a0e131a2893c75df786c94997370b01cb623dee0;p=plcapi.git diff --git a/PLC/Methods/GetPersons.py b/PLC/Methods/GetPersons.py index a483dd4..5228933 100644 --- a/PLC/Methods/GetPersons.py +++ b/PLC/Methods/GetPersons.py @@ -81,6 +81,7 @@ class GetPersons(Method): if added_fields: for person in persons: for field in added_fields: - del person[field] + if field in person: + del person[field] return persons