From d43d9fd87adc7b1d13492605f8f1647ecc0b9d9a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 22 Jul 2014 08:01:19 +0900 Subject: [PATCH] disable more useful msg in disk i/o error case --- aqt/errors.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/aqt/errors.py b/aqt/errors.py index 533b37f46..1ce1421e6 100644 --- a/aqt/errors.py +++ b/aqt/errors.py @@ -65,6 +65,23 @@ Anki manual for more information.""") "other programs are not using the audio device.")) if "invalidTempFolder" in error: return showWarning(self.tempFolderMsg()) + if "disk I/O error" in error: + return showWarning(_("""\ +An error occurred while accessing the database. + +Possible causes: + +- Antivirus, firewall, backup, or synchronization software may be \ + interfering with Anki. Try disabling such software and see if the \ + problem goes away. +- Your disk may be full. +- The Documents/Anki folder may be on a network drive. +- Files in the Documents/Anki folder may not be writeable. +- Your hard disk may have errors. + +It's a good idea to run Tools>Check Database to ensure your collection \ +is not corrupt. +""")) stdText = _("""\ An error occurred. It may have been caused by a harmless bug,
or your deck may have a problem.