Skip to content

Commit

Permalink
Handle invalid image uri in web imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cydanil authored Jun 26, 2021
1 parent f21b9a5 commit dce85c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gourmet/image_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ def __init__(self, parent: Gtk.Window, uris: List[str]):

for uri in uris:
image = make_thumbnail(uri, ThumbnailSize.SMALL)
if image is None:
continue
pixbuf = bytes_to_pixbuf(image_to_bytes(image))
self.liststore.append([pixbuf])

Expand Down

0 comments on commit dce85c8

Please sign in to comment.