fix de-auth when no media DB set up

This commit is contained in:
Damien Elmes 2020-05-30 12:28:35 +10:00
parent 0e5b7da62a
commit 42302b070e

View file

@ -86,7 +86,10 @@ class MediaManager:
return self._dir return self._dir
def force_resync(self) -> None: def force_resync(self) -> None:
os.unlink(media_paths_from_col_path(self.col.path)[1]) try:
os.unlink(media_paths_from_col_path(self.col.path)[1])
except FileNotFoundError:
pass
# File manipulation # File manipulation
########################################################################## ##########################################################################