fix(python): return none if argument is missing

This commit is contained in:
Ruben Fiszel
2023-02-10 18:47:45 +01:00
parent 2e6d77b7fa
commit 062632ba48
+1 -1
View File
@@ -1774,7 +1774,7 @@ async fn handle_python_job(
} else {
sig.args
.into_iter()
.map(|x| format!("args[\"{}\"] = kwargs[\"{}\"]", x.name, x.name))
.map(|x| format!("args[\"{}\"] = kwargs.get(\"{}\")", x.name, x.name))
.join("\n")
};