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:
|
try:
|
||||||
name, appid, version, branch, origin, installation = package.split("\t")
|
name, appid, version, branch, origin, installation = package.split("\t")
|
||||||
except ValueError:
|
except ValueError:
|
||||||
# For older Flatpak versions
|
try:
|
||||||
name, appid, version, branch, installation = package.split("\t")
|
# For older Flatpak versions
|
||||||
origin = ""
|
name, appid, version, branch, installation = package.split("\t")
|
||||||
|
origin = ""
|
||||||
|
except ValueError:
|
||||||
|
logger.error("Not able to parse Flatpak output: %s", package)
|
||||||
|
continue
|
||||||
packages.append({
|
packages.append({
|
||||||
"name": name,
|
"name": name,
|
||||||
"appid": appid,
|
"appid": appid,
|
||||||
|
|
Loading…
Reference in a new issue