1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-21 02:16:38 +02:00

Fix crash in python plugin after parse file error

This commit is contained in:
Sebastien Helleu
2009-05-08 10:30:36 +02:00
parent 85ecabdd9f
commit d3976c2afe
+4 -2
View File
@@ -472,8 +472,6 @@ weechat_python_load (const char *filename)
if (PyErr_Occurred ())
PyErr_Print ();
Py_EndInterpreter (python_current_interpreter);
/* PyEval_ReleaseLock (); */
/* if script was registered, removing from list */
if (python_current_script != NULL)
@@ -482,6 +480,10 @@ weechat_python_load (const char *filename)
&python_scripts, &last_python_script,
python_current_script);
}
Py_EndInterpreter (python_current_interpreter);
/* PyEval_ReleaseLock (); */
return 0;
}