From a69cca59f4b3040cc8a604070164e4259df17236 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 18 Mar 2026 15:02:00 +0800 Subject: [PATCH] post fix Update dll.c Update dll.c --- src/interpreter/dll.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/interpreter/dll.c b/src/interpreter/dll.c index 4d84f0f8..f45360e9 100644 --- a/src/interpreter/dll.c +++ b/src/interpreter/dll.c @@ -60,10 +60,7 @@ int load_module_from_dll_desktop_only(const char* path) PY_RAISE PY_RETURN { if(dll == NULL) return 0; py_module_initialize_t f_init = (py_module_initialize_t)dlsym(dll, f_init_name); #endif - if(f_init == NULL) { - RuntimeError("%s() not found in '%s'", f_init_name, path); - return -1; - } + if(f_init == NULL) return 0; bool success = f_init(); if(!success) return -1; return 1;