Commit ffeb83ab authored by Philipp Hörist's avatar Philipp Hörist

Util: Catch RuntimeError

parent fcda6a05
Pipeline #6691 passed with stages
in 4 minutes and 7 seconds
......@@ -755,6 +755,10 @@ def load_pixbuf(path, size=None):
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment