Skip to content
Snippets Groups Projects
Commit ffeb83ab authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Util: Catch RuntimeError

parent fcda6a05
No related branches found
No related tags found
No related merge requests found
......@@ -755,6 +755,10 @@ def load_pixbuf(path, size=None):
GdkPixbuf.InterpType.BILINEAR)
return pixbuf
except RuntimeError as error:
log.warning('Loading pixbuf failed: %s', error)
return None
def get_thumbnail_size(pixbuf, size):
# Calculates the new thumbnail size while preserving the aspect ratio
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment