Skip to content

Commit 38e8dea

Browse files
authored
[About.py] Correct issue causing crash (#3607)
Some old code that was meant to be removed was left behind after the last commit.
1 parent d036ee2 commit 38e8dea

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/python/Components/About.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ def getCPUInfoString():
157157
# break # Without this break the code returns the last line containing the string!
158158
cpuSpeedStr = _("%s GHz") % format_string("%.1f", cpuSpeedMhz / 1000) if cpuSpeedMhz and cpuSpeedMhz >= 1000 else _("%d MHz") % int(cpuSpeedMhz)
159159
if temperature:
160-
if not isinstance(temperature, str):
161-
temperature = temperature.encode("UTF-8", errors="ignore")
162160
if isinstance(temperature, float):
163161
temperature = format_string("%.1f", temperature)
164162
else:

0 commit comments

Comments
 (0)