|
elements = json_data.get("elements", None) |
@shimizust
When no "elements" returned in json_data => it raises a "ResponseFormattingError" because of "None" default value and doesn't show the body of the real exception
replace
elements = json_data.get("elements", None)
by
elements = json_data.get("elements", [])
linkedin-api-python-client/linkedin_api/clients/restli/response_formatter.py
Line 142 in 6331e52
@shimizust
When no "elements" returned in json_data => it raises a "ResponseFormattingError" because of "None" default value and doesn't show the body of the real exception
replace
elements = json_data.get("elements", None)by
elements = json_data.get("elements", [])