games: Correctly break if setting an image was successful
This commit is contained in:
committed by
Laura Kramolis
parent
513e638663
commit
a3fef27505
@@ -59,6 +59,8 @@ def load() -> Generator[Game]:
|
||||
game.cover = Gdk.Texture.new_from_filename(filename)
|
||||
except GLib.Error:
|
||||
continue
|
||||
else:
|
||||
break
|
||||
|
||||
yield game
|
||||
|
||||
|
||||
Reference in New Issue
Block a user