mirror of
https://github.com/lutris/lutris
synced 2024-09-04 23:13:35 +00:00
Add error handler when not able to parse Flatpak output
This commit is contained in:
parent
d17b4583b5
commit
d1e84424ea
|
@ -40,9 +40,13 @@ def get_installed_apps():
|
|||
try:
|
||||
name, appid, version, branch, origin, installation = package.split("\t")
|
||||
except ValueError:
|
||||
# For older Flatpak versions
|
||||
name, appid, version, branch, installation = package.split("\t")
|
||||
origin = ""
|
||||
try:
|
||||
# For older Flatpak versions
|
||||
name, appid, version, branch, installation = package.split("\t")
|
||||
origin = ""
|
||||
except ValueError:
|
||||
logger.error("Not able to parse Flatpak output: %s", package)
|
||||
continue
|
||||
packages.append({
|
||||
"name": name,
|
||||
"appid": appid,
|
||||
|
|
Loading…
Reference in a new issue