From bbb2a1c8b282bad7ffc85c56aed3620809d9b8a2 Mon Sep 17 00:00:00 2001 From: Etoh Date: Thu, 12 Oct 2017 12:36:15 +0100 Subject: [PATCH] Hopefully fix error when adding file in Unicode non-media directory (#135) --- syncplay/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/syncplay/client.py b/syncplay/client.py index 772be2a..251c323 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -1845,5 +1845,6 @@ class FileSwitchManager(object): return if self.isDirectoryInList(directoryToFind, self.mediaDirectories): return + directoryToFind = unicode(directoryToFind) self._client.ui.showErrorMessage(getMessage("added-file-not-in-media-directory-error").format(directoryToFind)) self.mediaDirectoriesNotFound.append(directoryToFind)