mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
provide debug info when collection corrupt
This commit is contained in:
parent
1b646c1c8d
commit
48dbc48b65
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ To import into a password protected profile, please open the profile before atte
|
||||||
# warn user
|
# warn user
|
||||||
showWarning("""\
|
showWarning("""\
|
||||||
Your collection is corrupt. Please see the manual for \
|
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
|
# move it out of the way so the profile can be used again
|
||||||
newpath = cpath+str(intTime())
|
newpath = cpath+str(intTime())
|
||||||
os.rename(cpath, newpath)
|
os.rename(cpath, newpath)
|
||||||
|
|
Loading…
Reference in a new issue