mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix saveas with no media dir
This commit is contained in:
parent
9765fdae73
commit
0f129f7aea
1 changed files with 1 additions and 1 deletions
|
@ -1377,7 +1377,7 @@ where id = :id""", pending)
|
||||||
if not self.tmpMediaDir and create:
|
if not self.tmpMediaDir and create:
|
||||||
self.tmpMediaDir = tempfile.mkdtemp()
|
self.tmpMediaDir = tempfile.mkdtemp()
|
||||||
dir = self.tmpMediaDir
|
dir = self.tmpMediaDir
|
||||||
if not os.path.exists(dir):
|
if not dir or not os.path.exists(dir):
|
||||||
return None
|
return None
|
||||||
return dir
|
return dir
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue