diff --git a/datasources/linkedin/search_linkedin.py b/datasources/linkedin/search_linkedin.py index a8380b4d8..9a7fc6386 100644 --- a/datasources/linkedin/search_linkedin.py +++ b/datasources/linkedin/search_linkedin.py @@ -158,7 +158,7 @@ def get_author(post): author = { "username": post["actor"]["navigationContext"]["actionTarget"].split("linkedin.com/").pop().split("?")[0], "name": post["actor"]["name"]["text"], - "description": post["actor"].get("description", {}).get("text", ""), + "description": post["actor"].get("description", {}).get("text", "") if post["actor"].get("description") else "", "pronouns": "", "avatar_url": "", "is_company": "no",