Skip to content

Commit

Permalink
[python] Fix hooks.py detection
Browse files Browse the repository at this point in the history
(cherry picked from commit c6776e4)
  • Loading branch information
dimitry-ishenko authored and rkd77 committed Oct 4, 2024
1 parent 571c377 commit a5d1064
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 a5d1064

Please sign in to comment.