1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

Merge pull request #333 from dimitry-ishenko-ubuntu/fix-hooks-py

[python] Fix hooks.py detection
This commit is contained in:
rkd77 2024-10-04 08:15:32 +02:00 committed by GitHub
commit 71dbfc62be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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();