Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
4c0033ae by wurstsalat at 2021-07-06T20:08:25+02:00
Preview: Catch errors when closing pixbuf loader
- - - - -
1 changed file:
- gajim/common/preview_helpers.py
Changes:
=====================================
gajim/common/preview_helpers.py
=====================================
@@ -138,11 +138,11 @@ def create_thumbnail_with_pixbuf(data, size):
loader = GdkPixbuf.PixbufLoader()
try:
loader.write(data)
+ loader.close()
except GLib.Error as error:
log.warning('making pixbuf failed: %s', error)
return None
- loader.close()
pixbuf = loader.get_pixbuf()
if size > pixbuf.get_width() and size > pixbuf.get_height():
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/4c0033ae3b3876bc32db185618a53b55fd85973b
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/4c0033ae3b3876bc32db185618a53b55fd85973b
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