From 571326d501e39137d45b3db0af9fbd04ed5a3e3b Mon Sep 17 00:00:00 2001 From: et0h Date: Mon, 19 Aug 2019 17:45:21 +0100 Subject: [PATCH] Don't try to load playlist file that does not exist --- syncplay/client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syncplay/client.py b/syncplay/client.py index b253d0d..3f2c7a9 100755 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -1723,6 +1723,10 @@ class SyncplayPlaylist(): return filename def loadPlaylistFromFile(self, path, shuffle=False): + if not os.path.isfile(path): + self._ui.showDebugMessage("Not loading {} as file could not be found".format(path)) + return + with open(path) as f: newPlaylist = f.read().splitlines() if shuffle: