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