1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

[python] Fix hooks.py detection

(cherry picked from commit c6776e447a)
This commit is contained in:
Dimitry Ishenko 2024-10-02 13:53:19 -04:00 committed by Witold Filipczyk
parent 571c3772b4
commit a5d1064189

View File

@ -143,7 +143,7 @@ hooks_module_exists(void)
result = PyObject_CallMethod(imp_module, "find_spec", "s", "hooks");
if (result) {
found_hooks = 1;
found_hooks = (result != Py_None);
goto end;
} else if (PyErr_ExceptionMatches(PyExc_ImportError)) {
PyErr_Clear();