[pyqgis-console] fix multi-line code execution

This commit is contained in:
Salvatore Larosa 2016-03-31 22:41:07 +02:00
parent 20ce2343cb
commit 0168bd5c68

View File

@ -616,7 +616,7 @@ class ShellScintilla(QsciScintilla, code.InteractiveInterpreter):
sys.excepthook = excepthook
super(ShellScintilla, self).runsource(source, filename, symbol)
return super(ShellScintilla, self).runsource(source, filename, symbol)
finally:
sys.excepthook = hook