Skip to content

Commit

Permalink
Fix error on startup for logins without headers
Browse files Browse the repository at this point in the history
  • Loading branch information
bradtgmurray committed Jan 30, 2024
1 parent 6b65cf5 commit 31f2227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linkedin_messaging/linkedin.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def __init__(self):
self.event_listeners = defaultdict(list)

def update_headers_from_cookies(self):
self.headers["csrf-token"] = self.cookies["JSESSIONID"].strip('"')
self.headers["csrf-token"] = self.cookies()["JSESSIONID"].strip('"')

@staticmethod
def from_cookies_and_headers(cookies: dict[str, str],
Expand Down

0 comments on commit 31f2227

Please sign in to comment.