display warning when profile corrupted

This commit is contained in:
Damien Elmes 2018-10-29 21:06:33 +10:00
parent 038151d2a9
commit 63a48ecdc4

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()