From bfafe1780ea787e18dfdfe4d95a1e96a419b137b Mon Sep 17 00:00:00 2001 From: albertosottile Date: Fri, 9 Mar 2018 09:50:43 +0100 Subject: [PATCH] Fixes string decode with drag-and-drop and non-ASCII chars --- syncplay/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/syncplay/client.py b/syncplay/client.py index 99045db..e8cb8b5 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -1929,7 +1929,10 @@ class FileSwitchManager(object): return False def notifyUserIfFileNotInMediaDirectory(self, filenameToFind, path): - path = path.decode('utf-8') + try: + path = path.decode('utf-8') + except UnicodeEncodeError: + pass directoryToFind = os.path.dirname(path) if directoryToFind in self.mediaDirectoriesNotFound: return