Skip to content

Commit 1beaedf

Browse files
committed
small webengine fix
1 parent 51f8154 commit 1beaedf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/classes/app.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@
4040
from PyQt5.QtWidgets import QApplication, QStyleFactory, QMessageBox
4141

4242
# QtWebEngineWidgets must be loaded prior to creating a QApplication
43-
from PyQt5.QtWebEngineWidgets import QWebEngineView
43+
try:
44+
from PyQt5.QtWebEngineWidgets import QWebEngineView
45+
except ImportError:
46+
pass
4447

4548
try:
4649
# Solution to solve QtWebEngineWidgets black screen caused by OpenGL not loaded

0 commit comments

Comments
 (0)