Philipp Hörist pushed to branch master at gajim / gajim


Commits:
ffeb83ab by lovetox at 2020-10-29T22:05:46+01:00
Util: Catch RuntimeError

- - - - -


1 changed file:

- gajim/gtk/util.py


Changes:

=====================================
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



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/ffeb83ab176eb4613f185f2f69a292b1034ab5be

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/ffeb83ab176eb4613f185f2f69a292b1034ab5be
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to