Skip to content

Commit

Permalink
Merge pull request #333 from dimitry-ishenko-ubuntu/fix-hooks-py
Browse files Browse the repository at this point in the history
[python] Fix hooks.py detection
  • Loading branch information
rkd77 authored Oct 4, 2024
2 parents aa16222 + c6776e4 commit 71dbfc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/python/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 71dbfc6

Please sign in to comment.