From ffeb83ab176eb4613f185f2f69a292b1034ab5be Mon Sep 17 00:00:00 2001 From: lovetox <philipp@hoerist.com> Date: Thu, 29 Oct 2020 22:05:46 +0100 Subject: [PATCH] Util: Catch RuntimeError --- gajim/gtk/util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gajim/gtk/util.py b/gajim/gtk/util.py index 56860486c5..b618795873 100644 --- a/gajim/gtk/util.py +++ b/gajim/gtk/util.py @@ -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 -- GitLab