Use the correct type for GErrors

This commit is contained in:
kramo
2023-12-17 00:25:01 +01:00
parent bcc3c57117
commit 7d0b9854d3
6 changed files with 14 additions and 14 deletions

View File

@@ -204,7 +204,7 @@ class SearchCartridgesService(Server, Gio.Application):
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(
str(path), -1, 32, True
)
except GLib.GError as e:
except GLib.Error as e:
print(e)
continue
elif (path := shared.covers_dir / (game_id + ".gif")).is_file():
@@ -212,7 +212,7 @@ class SearchCartridgesService(Server, Gio.Application):
pixbuf = GdkPixbuf.PixbufAnimation.new_from_file(
str(path)
).get_static_image()
except GLib.GError as e:
except GLib.Error as e:
print(e)
continue
d = {