From 4a120e7a54aa9ce17253bdbf2bfd9f8a743ca4f8 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 23 Jan 2016 21:06:41 -0800 Subject: [PATCH] Fix unable to startup if library refresh fails --- plexpy/pmsconnect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index 9dfb77f8..bcbd61db 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -1681,7 +1681,7 @@ class PmsConnect(object): server_library_stats = [] - if server_libraries['libraries_count'] != '0': + if server_libraries and server_libraries['libraries_count'] != '0': libraries_list = server_libraries['libraries_list'] for library in libraries_list: