mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
don't throw error if we can't return to old folder
This commit is contained in:
parent
fa4f26e560
commit
1db6a0bd3a
1 changed files with 5 additions and 1 deletions
|
@ -55,7 +55,11 @@ class MediaManager(object):
|
|||
self.db = None
|
||||
# change cwd back to old location
|
||||
if self._oldcwd:
|
||||
os.chdir(self._oldcwd)
|
||||
try:
|
||||
os.chdir(self._oldcwd)
|
||||
except:
|
||||
# may have been deleted
|
||||
pass
|
||||
|
||||
def dir(self):
|
||||
return self._dir
|
||||
|
|
Loading…
Reference in a new issue