From e5716b417a6f60384a5a7c449c76b06c856bb051 Mon Sep 17 00:00:00 2001 From: spl0k Date: Sat, 1 Jun 2019 14:53:06 +0200 Subject: [PATCH] Fixed watcher errors when moving/deleting folders containing a cover --- supysonic/scanner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/supysonic/scanner.py b/supysonic/scanner.py index 5493603..e7e790b 100644 --- a/supysonic/scanner.py +++ b/supysonic/scanner.py @@ -212,6 +212,9 @@ class Scanner: if not isinstance(dirpath, strtype): # pragma: nocover raise TypeError('Expecting string, got ' + str(type(dirpath))) + if not os.path.exists(dirpath): + return + folder = Folder.get(path = dirpath) if folder is None: return