mirror of
https://github.com/weechat/weechat.git
synced 2026-06-23 03:16:37 +02:00
python: fix error message when executing code from string in weechat_python_load (issue #128)
This commit is contained in:
@@ -808,9 +808,8 @@ weechat_python_load (const char *filename, const char *code)
|
||||
if (PyErr_Occurred ())
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: unable to create eval script"),
|
||||
weechat_prefix ("error"),
|
||||
PYTHON_PLUGIN_NAME);
|
||||
weechat_gettext ("%s%s: unable to execute code"),
|
||||
weechat_prefix ("error"), PYTHON_PLUGIN_NAME);
|
||||
PyErr_Print ();
|
||||
if (rc)
|
||||
Py_XDECREF(rc);
|
||||
|
||||
Reference in New Issue
Block a user