Skip to content

Commit

Permalink
linkedin: description = None fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dale-wahl committed Feb 26, 2025
1 parent 810927a commit adb174a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasources/linkedin/search_linkedin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit adb174a

Please sign in to comment.