just don't migrate if paths are the same, instead of raising an error

This commit is contained in:
Damien Elmes 2011-01-10 17:19:35 +09:00
parent b3a580793e
commit bc1526794f

View file

@ -2961,7 +2961,8 @@ to work with this version of Anki."""))
self.setupDropbox(deck)
def migrateMedia(self, from_, to):
assert from_ != to
if from_ == to:
return
files = os.listdir(from_)
skipped = False
for f in files: