mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-21 03:02:58 +02:00
...
This commit is contained in:
parent
79796fe071
commit
ce61bd26c4
1 changed files with 2 additions and 2 deletions
|
|
@ -905,8 +905,8 @@ def load_ebook(self, pathtoebook, open_at=None, reopen_at=None):
|
|||
worker.join(0.1)
|
||||
QApplication.processEvents()
|
||||
if worker.exception is not None:
|
||||
tb = worker.traceback
|
||||
if tb.strip().splitlines()[-1].startswith('DRMError:'):
|
||||
tb = worker.traceback.strip()
|
||||
if tb and tb.splitlines()[-1].startswith('DRMError:'):
|
||||
from calibre.gui2.dialogs.drm_error import DRMErrorMessage
|
||||
DRMErrorMessage(self).exec_()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue