mirror of
https://github.com/lutris/lutris
synced 2024-11-02 14:42:13 +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")
|
||||
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