diff --git a/python_files/vscode_pytest/run_pytest_script.py b/python_files/vscode_pytest/run_pytest_script.py index 46f6f0b9d9f5..cdf996e29ba2 100644 --- a/python_files/vscode_pytest/run_pytest_script.py +++ b/python_files/vscode_pytest/run_pytest_script.py @@ -59,7 +59,7 @@ print(f"Error: Could not connect to runTestIdsPort: {e}") print("Error: Could not connect to runTestIdsPort") try: - test_ids_from_buffer = raw_json["params"] + test_ids_from_buffer = raw_json.get("params") if test_ids_from_buffer: arg_array = ["-p", "vscode_pytest"] + args + test_ids_from_buffer print("Running pytest with args: " + str(arg_array))