Fix IndexError in browser mode

This commit is contained in:
Raju Kadam 2016-02-10 17:21:14 -08:00
parent c9d2505749
commit 4e19c61f9b

View File

@ -160,7 +160,7 @@ class GlancesClientBrowser(object):
"Server list dictionnary change inside the loop (wait next update)")
# Update the screen (list or Glances client)
if self.screen.active_server is None:
if not self.screen.active_server:
# Display the Glances browser
self.screen.update(self.get_servers_list())
else: