Skip to content

Commit

Permalink
Add UnicodeDecodeError catching (#22873)
Browse files Browse the repository at this point in the history
Resolve `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in
position 48995: unexpected end of data`

Co-authored-by: Aydar Kamaltdinov <a.kamaltdinov@tinkoff.ru>
  • Loading branch information
aydar-kamaltdinov and Aydar Kamaltdinov authored Feb 9, 2024
1 parent 8496dfe commit b0c34e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pythonFiles/vscode_pytest/run_pytest_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
except json.JSONDecodeError:
# JSON decoding error, the complete JSON object is not yet received
continue
except UnicodeDecodeError:
continue
except socket.error as e:
print(f"Error: Could not connect to runTestIdsPort: {e}")
print("Error: Could not connect to runTestIdsPort")
Expand Down

0 comments on commit b0c34e3

Please sign in to comment.