Skip to content

Commit 3464d1e

Browse files
committed
Prevent inheritance errors if imports fail
1 parent d07488d commit 3464d1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/windows/views/timeline_mixins.py

+2
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@
4040
from PyQt5.QtWebChannel import QWebChannel
4141
IS_WEBENGINE_VALID = True
4242
except ImportError:
43+
QWebEngineView = object # Prevent inheritance errors
4344
IS_WEBENGINE_VALID = False
4445

4546
try:
4647
# Attempt to import QtWebKit
4748
from PyQt5.QtWebKitWidgets import QWebView
4849
IS_WEBKIT_VALID = True
4950
except ImportError:
51+
QWebView = object # Prevent inheritance errors
5052
IS_WEBKIT_VALID = False
5153

5254

0 commit comments

Comments
 (0)