Skip to content

Commit f523f7b

Browse files
committed
Skip unreadable manifests
1 parent 6ddbb6d commit f523f7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugin/library.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def games(self):
3939
logging.debug(
4040
f'Unable to parse game manifest ("{appmanifest}")')
4141
continue
42-
else:
42+
try:
4343
games.append(
4444
LibraryItem(
4545
name=manifest['AppState']['name'],
@@ -49,6 +49,10 @@ def games(self):
4949
image_dir=image_dir,
5050
)
5151
)
52+
except KeyError:
53+
logging.debug(
54+
f'Unable to parse game manifest ("{appmanifest}")')
55+
continue
5256
return games
5357

5458
class LibraryImageDir:

0 commit comments

Comments
 (0)