also allow ModuleNotFoundError
This commit is contained in:
@ -2,7 +2,7 @@ from PyQt5.QtCore import QUrl
|
||||
|
||||
try:
|
||||
from PyQt5.QtWebKitWidgets import QWebView
|
||||
except ImportError:
|
||||
except (ImportError, ModuleNotFoundError):
|
||||
from PyQt5.QtWebEngineWidgets import QWebEngineView as QWebView
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user