mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Don't fail if status_code doesn't exist on startup
This commit is contained in:
parent
b6cd28e39c
commit
6deaddee6d
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ class Connect(object):
|
|||
if 'ExchangeToken' not in state['Servers'][0]:
|
||||
self.login()
|
||||
|
||||
elif state['State'] == CONNECTION_STATE['Unavailable'] and state['Status_Code'] == 401:
|
||||
elif state['State'] == CONNECTION_STATE['Unavailable'] and state.get('Status_Code', 0) == 401:
|
||||
# If the saved credentials don't work, restart the addon to force the password dialog to open
|
||||
window('jellyfin.restart', clear=True)
|
||||
|
||||
|
|
Loading…
Reference in a new issue