mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-09 14:04:32 +01:00
...
This commit is contained in:
parent
7d0a047026
commit
30186ad1d9
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ def parse_string(self, src):
|
|||
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…
Reference in a new issue