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