mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -05:00
fix de-auth when no media DB set up
This commit is contained in:
parent
0e5b7da62a
commit
42302b070e
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue