Browse Source

post fix

Update dll.c

Update dll.c
blueloveTH 1 day ago
parent
commit
a69cca59f4
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/interpreter/dll.c

+ 1 - 4
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;