mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
Fix running unsaved script in console
This commit is contained in:
parent
d64f47404b
commit
11ee2fc809
@ -633,6 +633,7 @@ class Editor(QsciScintilla):
|
|||||||
source = source.encode('utf-8')
|
source = source.encode('utf-8')
|
||||||
if isinstance(filename, type(u"")):
|
if isinstance(filename, type(u"")):
|
||||||
filename = filename.encode('utf-8')
|
filename = filename.encode('utf-8')
|
||||||
|
if filename:
|
||||||
compile(source, filename, 'exec')
|
compile(source, filename, 'exec')
|
||||||
except SyntaxError as detail:
|
except SyntaxError as detail:
|
||||||
eline = detail.lineno and detail.lineno or 1
|
eline = detail.lineno and detail.lineno or 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user