Implemented a workaround for a strange issue caused by QScintilla (I think). eric7

Sat, 22 May 2021 12:46:57 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 22 May 2021 12:46:57 +0200
branch
eric7
changeset 8352
879dc528461f
parent 8351
7d13e08ddb3f
child 8353
799196d0b05d

Implemented a workaround for a strange issue caused by QScintilla (I think).

eric7/eric7.py file | annotate | diff | comparison | revisions
--- a/eric7/eric7.py	Sat May 22 11:14:43 2021 +0200
+++ b/eric7/eric7.py	Sat May 22 12:46:57 2021 +0200
@@ -44,7 +44,8 @@
     sys.exit(100)
 
 with contextlib.suppress(ImportError):
-    from PyQt6 import QtWebEngineWidgets    # __IGNORE_WARNING__ __IGNORE_EXCEPTION__
+    from PyQt6 import QtWebEngineWidgets
+    # __IGNORE_WARNING__ __IGNORE_EXCEPTION__
 
 # some global variables needed to start the application
 args = None
@@ -157,6 +158,11 @@
     import Utilities
     import Globals
     
+    # Workaround for a strange issue with QScintilla
+    if str(excValue) == "unable to convert a QVariant back to a Python object":
+        return
+    # TODO: remove this workaround once issue is resolved
+    
     separator = '-' * 80
     logFile = os.path.join(Globals.getConfigDir(), "eric7_error.log")
     notice = (

eric ide

mercurial