From eceaa0ae4f575807e0aed70a8acc81d27d90b4d8 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 19 Feb 2012 00:54:33 +0000 Subject: [PATCH] catch and log 'glib.GError: Unrecognized image file format' error --- deluge/ui/gtkui/common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/common.py b/deluge/ui/gtkui/common.py index 6ad0ff70e..4b56048e5 100644 --- a/deluge/ui/gtkui/common.py +++ b/deluge/ui/gtkui/common.py @@ -53,8 +53,11 @@ def get_logo(size): return gtk.gdk.pixbuf_new_from_file_at_size(deluge.common.get_pixmap("deluge.png"), \ size, size) else: - return gtk.gdk.pixbuf_new_from_file_at_size(deluge.common.get_pixmap("deluge.svg"), \ + try: + return gtk.gdk.pixbuf_new_from_file_at_size(deluge.common.get_pixmap("deluge.svg"), \ size, size) + except Exception, e: + log.warning(e) def build_menu_radio_list(value_list, callback, pref_value=None, suffix=None, show_notset=False, notset_label=None, notset_lessthan=0,