mirror of
https://github.com/lutris/lutris
synced 2024-11-02 14:59:58 +00:00
Merge pull request #2366 from DarkWingMcQuack/patch-1
fix UnicodeDecodeError on startup
This commit is contained in:
commit
542a69527a
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ class LinuxSystem:
|
||||||
logger.error("Could not detect ldconfig on this system")
|
logger.error("Could not detect ldconfig on this system")
|
||||||
return []
|
return []
|
||||||
try:
|
try:
|
||||||
output = subprocess.check_output([ldconfig, "-p"]).decode("utf-8").split("\n")
|
output = subprocess.check_output([ldconfig, "-p"]).decode("utf-8", errors="ignore").split("\n")
|
||||||
except subprocess.CalledProcessError as ex:
|
except subprocess.CalledProcessError as ex:
|
||||||
logger.error("Failed to get libraries from ldconfig: %s", ex)
|
logger.error("Failed to get libraries from ldconfig: %s", ex)
|
||||||
return []
|
return []
|
||||||
|
|
Loading…
Reference in a new issue