From 48dbc48b6551a69731bf117317725cdd0e4c273c Mon Sep 17 00:00:00 2001 From: dae Date: Thu, 26 Jun 2014 07:37:16 +0900 Subject: [PATCH] provide debug info when collection corrupt --- aqt/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/main.py b/aqt/main.py index 05c28c684..2bdce16b2 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -273,7 +273,7 @@ To import into a password protected profile, please open the profile before atte # warn user showWarning("""\ Your collection is corrupt. Please see the manual for \ -how to restore from a backup.""") +how to restore from a backup."""+"\n\n"+_("Debug info:")+"\n"+traceback.format_exc()) # move it out of the way so the profile can be used again newpath = cpath+str(intTime()) os.rename(cpath, newpath)