mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
...
This commit is contained in:
parent
79796fe071
commit
ce61bd26c4
@ -905,8 +905,8 @@ class EbookViewer(MainWindow):
|
||||
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…
x
Reference in New Issue
Block a user