We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e92ae96 commit fa7ee58Copy full SHA for fa7ee58
src/classes/app.py
@@ -39,8 +39,12 @@
39
from PyQt5.QtGui import QPalette, QColor, QFontDatabase, QFont
40
from PyQt5.QtWidgets import QApplication, QStyleFactory, QMessageBox
41
42
-# QtWebEngineWidgets must be loaded prior to creating a QApplication
43
-from PyQt5.QtWebEngineWidgets import QWebEngineView
+try:
+ # QtWebEngineWidgets must be loaded prior to creating a QApplication
44
+ # But on systems with only WebKit, this will fail (and we ignore the failure)
45
+ from PyQt5.QtWebEngineWidgets import QWebEngineView
46
+except ImportError:
47
+ pass
48
49
try:
50
# Solution to solve QtWebEngineWidgets black screen caused by OpenGL not loaded
0 commit comments