From be81d282acbf31c6244cdd14e777d3c58f65bf49 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 7 Nov 2013 21:57:23 +0900 Subject: [PATCH] catch temp folder issue when importing --- anki/__init__.py | 2 +- aqt/importing.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/anki/__init__.py b/anki/__init__.py index ac63909cc..8c7cb6488 100644 --- a/anki/__init__.py +++ b/anki/__init__.py @@ -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"] diff --git a/aqt/importing.py b/aqt/importing.py index c8d22fe58..609b08ede 100644 --- a/aqt/importing.py +++ b/aqt/importing.py @@ -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)