From 3ffdae29bb2eebc46fa94d4021b155c9cbef5c79 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 4 Jan 2009 10:35:42 +0900 Subject: [PATCH] show exact graph failure error --- ankiqt/ui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index ad8195ed3..af2abbfd6 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -999,13 +999,13 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2}) try: ui.dialogs.get("Graphs", self, self.deck) except (ImportError, ValueError): + traceback.print_exc() if sys.platform.startswith("win32"): ui.utils.showInfo( _("To display graphs, Anki needs a .dll file which\n" "you don't have. Please install:\n") + "http://www.dll-files.com/dllindex/dll-files.shtml?msvcp71") else: - #traceback.print_exc() ui.utils.showInfo(_( "Your version of Matplotlib is broken.\n" "Please see http://ichi2.net/anki/wiki/MatplotlibBroken"))