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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user