From a658459862056668d955821027e833deb16057e8 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 4 Sep 2016 22:58:46 -0500 Subject: [PATCH] suppress 401 error --- resources/lib/clientinfo.py | 3 ++- resources/lib/librarysync.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/clientinfo.py b/resources/lib/clientinfo.py index 15d7a230..10c624f4 100644 --- a/resources/lib/clientinfo.py +++ b/resources/lib/clientinfo.py @@ -50,7 +50,8 @@ class ClientInfo(object): return device_name - def get_platform(self): + @classmethod + def get_platform(cls): if xbmc.getCondVisibility('system.platform.osx'): return "OSX" diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 58a5f04e..fe086eba 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -907,6 +907,8 @@ class LibrarySync(threading.Thread): except Warning as e: if "restricted" in e: pass + elif "401" in e: + pass except Exception as e: window('emby_dbScan', clear=True) log.exception(e)