mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22: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:
|
||||
self.tmpMediaDir = tempfile.mkdtemp()
|
||||
dir = self.tmpMediaDir
|
||||
if not os.path.exists(dir):
|
||||
if not dir or not os.path.exists(dir):
|
||||
return None
|
||||
return dir
|
||||
|
||||
|
|
Loading…
Reference in a new issue