From 8f73d40018800b6c787303df1c7b29b3290de7ef Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Fri, 20 Jan 2017 14:16:06 +0100 Subject: [PATCH] Fix some connection issues - Should fix #181 - Should fix error: (101, 'Network is unreachable') --- resources/lib/PlexAPI.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index e8368daa..aa2a16e7 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -470,6 +470,11 @@ class PlexAPI(): 'data': data}) except socket.timeout: break + except Exception as e: + # Probably error: (101, 'Network is unreachable') + log.error(e) + import traceback + log.error("Traceback:\n%s" % traceback.format_exc()) finally: GDM.close()