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/ffeb83ab176eb4613f185f2f69a292b1…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ffeb83ab176eb4613f185f2f69a292b1…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
fcda6a05 by lovetox at 2020-10-29T19:35:49+01:00
Interface: Fix string formatting
- - - - -
1 changed file:
- gajim/gui_interface.py
Changes:
=====================================
gajim/gui_interface.py
=====================================
@@ -317,8 +317,8 @@ def handle_event_subscribed_presence(self, event):
bare_jid,
event.account,
title=_('Authorization accepted'),
- text=_('The contact "%s" has authorized you'
- ' to see their status.') % event.jid)
+ text=_('The contact "%(jid)s" has authorized you'
+ ' to see their status.') % {'jid': event.jid})
def show_unsubscribed_dialog(self, account, contact):
def _remove():
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/fcda6a05d2476bb5895ac757d8221e77…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/fcda6a05d2476bb5895ac757d8221e77…
You're receiving this email because of your account on dev.gajim.org.