mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-25 02:53:23 +02:00
Nicer error message if the progress_indicator plugin fails to load
This commit is contained in:
parent
dc4c444a71
commit
651344027c
1 changed files with 3 additions and 1 deletions
|
|
@ -823,7 +823,9 @@ def __init__(self, args, force_calibre_style=False, override_program_name=None,
|
|||
args.extend(['-platformpluginpath', sys.extensions_location, '-platform', 'headless'])
|
||||
self.headless = headless
|
||||
qargs = [i.encode('utf-8') if isinstance(i, unicode_type) else i for i in args]
|
||||
self.pi = plugins['progress_indicator'][0]
|
||||
self.pi, pi_err = plugins['progress_indicator']
|
||||
if pi_err:
|
||||
raise RuntimeError('Failed to load the progress_indicator C extension, with error: {}'.format(pi_err))
|
||||
if not isosx and not headless:
|
||||
# On OS X high dpi scaling is turned on automatically by the OS, so we dont need to set it explicitly
|
||||
setup_hidpi()
|
||||
|
|
|
|||
Loading…
Reference in a new issue