Skip to content

Commit

Permalink
[CPU] Improve Commit slider's handling of non-decodable characters (o…
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanNovoselov authored and allnes committed Nov 23, 2023
1 parent da2769e commit 41658a3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/plugins/intel_cpu/tools/commit_slider/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,10 @@ def runCommandList(commit, cfgData, enforceClean=False):
)
proc = subprocess.Popen(
formattedCmd, cwd=cwd, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT
stderr=subprocess.STDOUT,
encoding="utf-8", errors="replace"
)
for line in proc.stdout:
# decode if line is byte-type
try:
line = line.decode("utf-8")
except (UnicodeDecodeError, AttributeError):
pass
sys.stdout.write(line)
commitLogger.info(line)
if "catchMsg" in cmd:
Expand Down

0 comments on commit 41658a3

Please sign in to comment.