From 176f0dfe757525e1560fe44d55863b037c198b72 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 26 May 2020 17:35:27 +0200 Subject: [PATCH] chg, function available in v3.6 Travis has v3.5... --- client/src/cmdscript.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/src/cmdscript.c b/client/src/cmdscript.c index cad94cafe..07764db88 100644 --- a/client/src/cmdscript.c +++ b/client/src/cmdscript.c @@ -316,10 +316,7 @@ static int CmdScriptRun(const char *Cmd) { //PyImport_ImportModule("requests"); PyRun_SimpleFileExFlags(f, preferredName, 1, NULL); - if (Py_FinalizeEx() < 0) { - free(script_path); - return PM3_ESOFT; - } + Py_Finalize(); PyMem_RawFree(program); free(script_path);