Skip to content

Commit

Permalink
Merge pull request #67 from highvolt-dev/bugfix/nokia_2104_bugfix
Browse files Browse the repository at this point in the history
conditionally check for lsid cookie to avoid runtime error with nokia…
  • Loading branch information
highvolt-dev committed Apr 10, 2022
2 parents 25fa605 + 0626412 commit a87e6f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tmo_monitor/gateway/nokia.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def login_web(self):
login_request.raise_for_status()
self.web_jar = requests.cookies.RequestsCookieJar()
self.web_jar.set('sid', login_request.cookies['sid'], domain='192.168.12.1', path='/')
self.web_jar.set('lsid', login_request.cookies['lsid'], domain='192.168.12.1', path='/')
if 'lsid' in login_request.cookies:
self.web_jar.set('lsid', login_request.cookies['lsid'], domain='192.168.12.1', path='/')
login_response = login_request.json()
self.csrf_token = login_response['token']

Expand Down

0 comments on commit a87e6f1

Please sign in to comment.