mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
fix UnicodeDecodeError on startup
This commit is contained in:
parent
ab24c7812e
commit
f28772bbd7
|
@ -302,7 +302,7 @@ class LinuxSystem:
|
|||
logger.error("Could not detect ldconfig on this system")
|
||||
return []
|
||||
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:
|
||||
logger.error("Failed to get libraries from ldconfig: %s", ex)
|
||||
return []
|
||||
|
|
Loading…
Reference in a new issue