Skip to content

Commit d28d202

Browse files
committedMay 29, 2013
Show call stack when python console open fails
1 parent a0b4515 commit d28d202

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,9 +1137,9 @@ void QgisApp::showPythonDialog()
11371137
if ( !mPythonUtils || !mPythonUtils->isEnabled() )
11381138
return;
11391139

1140-
bool res = mPythonUtils->runStringUnsafe(
1140+
bool res = mPythonUtils->runString(
11411141
"import console\n"
1142-
"console.show_console()\n", false );
1142+
"console.show_console()\n", tr( "Failed to open Python console:" ), false );
11431143

11441144
if ( !res )
11451145
{

0 commit comments

Comments
 (0)
Please sign in to comment.