mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -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,9 +1003,12 @@ your deck."""))
|
|||
continue
|
||||
try:
|
||||
deck = DeckStorage.Deck(d, backup=False)
|
||||
except:
|
||||
toRemove.append(d)
|
||||
continue
|
||||
except Exception, e:
|
||||
if not "File is in use" in str(e):
|
||||
print "remove"
|
||||
toRemove.append(d)
|
||||
else:
|
||||
continue
|
||||
self.browserDecks.append({
|
||||
'path': d,
|
||||
'name': deck.name(),
|
||||
|
|
Loading…
Reference in a new issue