also allow ModuleNotFoundError

This commit is contained in:
2025-03-26 11:24:05 +01:00
parent bd3ccfa407
commit d7236401b6

View File

@ -2,7 +2,7 @@ from PyQt5.QtCore import QUrl
try: try:
from PyQt5.QtWebKitWidgets import QWebView from PyQt5.QtWebKitWidgets import QWebView
except ImportError: except (ImportError, ModuleNotFoundError):
from PyQt5.QtWebEngineWidgets import QWebEngineView as QWebView from PyQt5.QtWebEngineWidgets import QWebEngineView as QWebView