1
0
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:
Sébastien Helleu
2017-12-29 09:26:43 +01:00
parent b80e3ff792
commit 23ec371dae
+2 -3
View File
@@ -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);