mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 07:37:11 -05:00
catch temp folder issue when importing
This commit is contained in:
parent
5dfe95aa67
commit
be81d282ac
2 changed files with 3 additions and 1 deletions
|
|
@ -30,6 +30,6 @@ if arch[1] == "ELF":
|
|||
sys.path.insert(0, os.path.join(ext, "py2.%d-%s" % (
|
||||
sys.version_info[1], arch[0][0:2])))
|
||||
|
||||
version="2.0.16" # build scripts grep this line, so preserve formatting
|
||||
version="2.0.17" # build scripts grep this line, so preserve formatting
|
||||
from anki.storage import Collection
|
||||
__all__ = ["Collection"]
|
||||
|
|
|
|||
|
|
@ -167,6 +167,8 @@ you can enter it here. Use \\t to represent tab."""),
|
|||
err = repr(str(e))
|
||||
if "1-character string" in err:
|
||||
msg += err
|
||||
elif "invalidTempFolder" in err:
|
||||
msg += self.mw.errorHandler.tempFolderMsg()
|
||||
else:
|
||||
msg += unicode(traceback.format_exc(), "ascii", "replace")
|
||||
showText(msg)
|
||||
|
|
|
|||
Loading…
Reference in a new issue