catch temp folder issue when importing

This commit is contained in:
Damien Elmes 2013-11-07 21:57:23 +09:00
parent 5dfe95aa67
commit be81d282ac
2 changed files with 3 additions and 1 deletions

View file

@ -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"]

View file

@ -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)