mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -04:00
if the file is in use, hide from browser but don't forget
This commit is contained in:
parent
8cd6692c84
commit
dd5b3bacc8
1 changed files with 6 additions and 3 deletions
|
@ -1003,8 +1003,11 @@ your deck."""))
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
deck = DeckStorage.Deck(d, backup=False)
|
deck = DeckStorage.Deck(d, backup=False)
|
||||||
except:
|
except Exception, e:
|
||||||
|
if not "File is in use" in str(e):
|
||||||
|
print "remove"
|
||||||
toRemove.append(d)
|
toRemove.append(d)
|
||||||
|
else:
|
||||||
continue
|
continue
|
||||||
self.browserDecks.append({
|
self.browserDecks.append({
|
||||||
'path': d,
|
'path': d,
|
||||||
|
|
Loading…
Reference in a new issue