From c823be1daa2e05ad8d3f5899f30a8e8d289fbb52 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 24 Sep 2016 22:41:14 -0500 Subject: [PATCH] Fix if no servers is returned --- resources/lib/connectmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/connectmanager.py b/resources/lib/connectmanager.py index 08936af5..88309a2b 100644 --- a/resources/lib/connectmanager.py +++ b/resources/lib/connectmanager.py @@ -84,7 +84,7 @@ class ConnectManager(object): 'connect_manager': self._connect, 'username': user.get('DisplayName', ""), 'user_image': user.get('ImageUrl'), - 'servers': state['Servers'], + 'servers': state.get('Servers') or [], 'emby_connect': False if user else True } dialog.set_args(**kwargs)