diff --git a/aqt/__init__.py b/aqt/__init__.py index a7517f510..df7248a81 100644 --- a/aqt/__init__.py +++ b/aqt/__init__.py @@ -8,7 +8,7 @@ import anki.lang from anki.consts import HELP_SITE as appHelpSite from anki.hooks import runHook -appVersion="2.0-rc6" +appVersion="2.0.0" appWebsite="http://ankisrs.net/" appChanges="http://ankisrs.net/docs/changes.html" appDonate="http://ankisrs.net/support/" diff --git a/aqt/main.py b/aqt/main.py index 958b91832..5ec84b526 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -1057,6 +1057,8 @@ Please ensure a profile is open and Anki is not busy, then try again."""), if buf == "raise": return # import + if not isinstance(buf, unicode): + buf = unicode(buf, "utf8", "ignore") if not os.path.exists(buf): return showInfo(_("Please use File>Import to import this file.")) import aqt.importing