display warning when profile corrupted

This commit is contained in:
Damien Elmes 2018-10-29 21:06:33 +10:00
parent eef0b92374
commit 3126611ecf

View file

@ -162,6 +162,11 @@ a flash drive.""" % self.base)
try:
self.profile = self._unpickle(data)
except:
QMessageBox.warning(
None, _("Profile Corrupt"), _("""\
Anki could not read your profile data. Window sizes and your sync login \
details have been forgotten."""))
print("resetting corrupt profile")
self.profile = profileConf.copy()
self.save()