Skip to content

Commit d99e74e

Browse files
authored
Fixes KeyError: 'params' when running tests (#23397)
fixes #23396
1 parent 946d371 commit d99e74e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)