Skip to content

Commit 78817f3

Browse files
authored
Merge pull request #4182 from grandixximo/fix/gcode-editor-undefined-e
qtvcp: fix undefined name in gcode_editor QScintilla import fallback
2 parents 0b47539 + 6695f11 commit 78817f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/python/qtvcp/widgets/gcode_editor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@
6262
if qtpy.PYQT5:
6363
try:
6464
from PyQt5.Qsci import QsciScintilla, QsciLexerCustom, QsciLexerPython
65-
except ImportError:
65+
except ImportError as e:
6666
LOG.critical("Can't import QsciScintilla - is package python3-pyqt5.qsci installed?", exc_info=e)
67+
sys.exit(1)
6768
else:
6869
try:
6970
from PyQt6.Qsci import QsciScintilla, QsciLexerCustom, QsciLexerPython

0 commit comments

Comments
 (0)