Skip to content

Commit a58012b

Browse files
andybbrunoanthonykim1
authored andcommitted
Fixes KeyError: 'params' when running tests (microsoft#23397)
fixes microsoft#23396
1 parent 42a513e commit a58012b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_files/vscode_pytest/run_pytest_script.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
print(f"Error: Could not connect to runTestIdsPort: {e}")
6060
print("Error: Could not connect to runTestIdsPort")
6161
try:
62-
test_ids_from_buffer = raw_json["params"]
62+
test_ids_from_buffer = raw_json.get("params")
6363
if test_ids_from_buffer:
6464
arg_array = ["-p", "vscode_pytest"] + args + test_ids_from_buffer
6565
print("Running pytest with args: " + str(arg_array))

0 commit comments

Comments
 (0)