1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-09-19 19:01:03 +00:00

Fixed watcher errors when moving/deleting folders containing a cover

This commit is contained in:
spl0k 2019-06-01 14:53:06 +02:00
parent ebea356901
commit e5716b417a

View File

@ -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