mirror of
https://github.com/lutris/lutris
synced 2024-09-05 15:33:40 +00:00
Merge pull request #2366 from DarkWingMcQuack/patch-1
fix UnicodeDecodeError on startup
This commit is contained in:
commit
542a69527a
|
@ -303,7 +303,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