Skip to content

Commit b0c34e3

Browse files
aydar-kamaltdinovAydar Kamaltdinov
and
Aydar Kamaltdinov
authored
Add UnicodeDecodeError catching (#22873)
Resolve `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 48995: unexpected end of data` Co-authored-by: Aydar Kamaltdinov <[email protected]>
1 parent 8496dfe commit b0c34e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pythonFiles/vscode_pytest/run_pytest_script.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
except json.JSONDecodeError:
5959
# JSON decoding error, the complete JSON object is not yet received
6060
continue
61+
except UnicodeDecodeError:
62+
continue
6163
except socket.error as e:
6264
print(f"Error: Could not connect to runTestIdsPort: {e}")
6365
print("Error: Could not connect to runTestIdsPort")

0 commit comments

Comments
 (0)