mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
7d0a047026
commit
30186ad1d9
@ -195,7 +195,7 @@ class OptionSet(object):
|
||||
src = src.decode('utf-8')
|
||||
src = src.replace(u'PyQt5.QtCore', u'PyQt4.QtCore')
|
||||
exec src in options
|
||||
except RuntimeError:
|
||||
except (SystemError, RuntimeError):
|
||||
try:
|
||||
src = src.replace('PyQt' + '4', 'PyQt5')
|
||||
exec src in options
|
||||
|
Loading…
x
Reference in New Issue
Block a user