Skip to content

Commit db63db4

Browse files
authored
TimelineWebView: Log WebKit import fail reason (#3883)
If we only raise an exception from the WebEngine import failure, then we lose any visibility into the reason WHY the WebKit backend failed to load. (Important if the failure reason is a code error, not a missing PyQtWebKit module.)
1 parent ac9bf43 commit db63db4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/windows/views/webview.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
from .webview_backend.webkit import TimelineWebKitView as WebViewClass
170170
WEBVIEW_LOADED = True
171171
except ImportError:
172-
pass
172+
log.error("Import failure loading WebKit backend", exc_info=1)
173173
finally:
174174
if not WEBVIEW_LOADED:
175175
raise RuntimeError(

0 commit comments

Comments
 (0)