Fix if no servers is returned

This commit is contained in:
angelblue05 2016-09-24 22:41:14 -05:00
parent 5e7d0e3a6a
commit c823be1daa

View file

@ -84,7 +84,7 @@ class ConnectManager(object):
'connect_manager': self._connect, 'connect_manager': self._connect,
'username': user.get('DisplayName', ""), 'username': user.get('DisplayName', ""),
'user_image': user.get('ImageUrl'), 'user_image': user.get('ImageUrl'),
'servers': state['Servers'], 'servers': state.get('Servers') or [],
'emby_connect': False if user else True 'emby_connect': False if user else True
} }
dialog.set_args(**kwargs) dialog.set_args(**kwargs)