diff --git a/src/calibre/gui2/main.py b/src/calibre/gui2/main.py index 609946ec98..f6354b2522 100644 --- a/src/calibre/gui2/main.py +++ b/src/calibre/gui2/main.py @@ -257,7 +257,7 @@ class Main(MainWindow, Ui_MainWindow): Called once metadata has been read for all books on the device. ''' if exception: - if 'ExpatError' in str(exception): + if 'not well-formed' in str(exception): error_dialog(self, _('Device database corrupted'), _('''
The database of books on the reader is corrupted. Try the following: