mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
skip dropbox init if media folder doesn't exist
This commit is contained in:
parent
7d846a85ab
commit
405a28e090
1 changed files with 1 additions and 1 deletions
|
|
@ -2900,7 +2900,7 @@ This deck already exists on your computer. Overwrite the local copy?"""),
|
|||
dir = deck.mediaDir()
|
||||
# update location
|
||||
deck.setVar("mediaLocation", next)
|
||||
if prefix == "dropbox":
|
||||
if dir and prefix == "dropbox":
|
||||
self.setupDropbox(deck)
|
||||
|
||||
def migrateMedia(self, from_, to):
|
||||
|
|
|
|||
Loading…
Reference in a new issue